aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/typeid-template-argument.C
blob: 38dbfd3f3e39ad829da8c86f4b4a9f24e6574cce (plain)
1
2
3
4
5
6
7
// 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" }