Debian Codegraph @

gcc/testsuite/g++.dg/template/error16.C

raw
1 // PR c++/18674
2
3 template <typename I>
4 static void g() {
5 enum I::t a; // { dg-error "" }
6 (void) a;
7 }
8
9 struct B {
10 typedef int t;
11 };
12
13 void h()
14 {
15 g<B>();
16 }