Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr31442.C

raw
1 // { dg-do compile { target c++11 } }
2 template<typename... T, T = 0> struct A {}; // { dg-error "parameter packs|T|the end|parameter packs|anonymous" }
3
4 struct B
5 {
6 template <template <typename...> class C> B(C<int>);
7 };
8
9 B b = A<int>();