language: C++ 4.7.2 (gcc-4.7.2)
date: 135 days 20 hours ago
link:
visibility: public
1
2
3
4
5
template<class T, const char* p> int X() {
};
const char p[] = "Vivisectionist";
int m() {X<int,p>();}
 
prog.cpp: In function ‘int X()’:
prog.cpp:2: warning: no return statement in function returning non-void
prog.cpp: In function ‘int m()’:
prog.cpp:4: error: ‘p’ cannot appear in a constant-expression
prog.cpp:4: error: no matching function for call to ‘X()’