Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
typeid-template-argument.C
blob: 38dbfd3f3e39ad829da8c86f4b4a9f24e6574cce [
file
] [
log
] [
blame
]
// This used to ICE (PR28420)
// { dg-do compile }
template
<int>
struct
A
;
int
i
=
sizeof
(
A
<typeid>
);
// { dg-error "operator cannot appear in a constant-expression|template argument 1 is invalid" }