fork download
  1. template<class T, const char* p> int X() {
  2. };
  3. const char p[] = "Vivisectionist";
  4. int m() {X<int,p>();}
  5.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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()’
stdout

Standard output is empty