fork(4) download
  1. template<template<typename> class> struct Foo {};
  2. template<typename...> struct Bar {};
  3.  
  4. int main() {
  5. Foo<Bar>();
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:5:9: error: type/value mismatch at argument 1 in template parameter list for ‘template<template<class> class<template-parameter-1-1> > struct Foo’
  Foo<Bar>();
         ^
prog.cpp:5:9: error:   expected a template of type ‘template<class> class<template-parameter-1-1>’, got ‘template<class ...> struct Bar’
stdout
Standard output is empty