PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typeid-template-argument.C
blob38dbfd3f3e39ad829da8c86f4b4a9f24e6574cce
1 // This used to ICE (PR28420)
3 // { dg-do compile }
5 template<int> struct A;
7 int i = sizeof(A<typeid>); // { dg-error "operator cannot appear in a constant-expression|template argument 1 is invalid" }