OSDN Git Service

PR c++/44157
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / pr31442.C
1 // { dg-options "-std=gnu++0x" }
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>(); // { dg-error "mismatch|expected" }