template<class T, const char* p> int X() { }; const char p[] = "Vivisectionist"; int m() {X<int,p>();}
Standard input is empty
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()’
Standard output is empty