☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
typeid-template-argument.C
☽
☼
gcc/testsuite/g++.dg/template/typeid-template-argument.C
code
plain
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" }