Debian Codegraph @

gcc/testsuite/g++.dg/template/typeid-template-argument.C

raw
1 // This used to ICE (PR28420)
2
3 // { dg-do compile }
4
5 template<int> struct A;
6
7 int i = sizeof(A<typeid>); // { dg-error "operator cannot appear in a constant-expression|template argument 1 is invalid" }