Sign in
llvm
/
llvm-archive
/
276bde03595d52e26812d2712817bc876da8ee7b
/
.
/
llvm-gcc-4.2
/
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" }