PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / sizeof-template-argument.C
blob31aeeec9bfcc827c2e8ecfadb6bdd074ce7f1fec
1 /* This used to ICE (PR c++/29573) */
2 /* { dg-do compile } */
4 template<int> struct A {};
6 template<typename> struct B : A <sizeof(=)> {}; /* { dg-error "template argument" } */
8 template<typename> struct C : A <sizeof(=)> {}; /* { dg-error "template argument" } */
10 int a;
12 template<typename> struct D : A <sizeof(a=1)> {}; /* This used to ICE as well. */
14 template<typename> struct E : A <sizeof(a=1)> {}; /* This used to ICE as well. */