fork(1) download
  1. template<bool>
  2. struct Foo
  3. {
  4. };
  5.  
  6. int main()
  7. {
  8. Foo<void(Foo<true>::*)()>();
  9. }
Compilation error #stdin compilation error #stdout 0s 3136KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:8:26: error: type/value mismatch at argument 1 in template parameter list for 'template<bool <anonymous> > struct Foo'
  Foo<void(Foo<true>::*)()>();
                          ^
prog.cpp:8:26: error:   expected a constant of type 'bool', got 'void (Foo<true>::*)()'
stdout
Standard output is empty