Debian Codegraph @

gcc/testsuite/g++.dg/lookup/crash1.C

raw
1 // { dg-do compile }
2
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 25 Aug 2003 <[email protected]>
5 // Origin pr 11871 Dirk Mueller <[email protected]>
6
7 // PR c++/11871 Regression
8
9 namespace std
10 {
11 class A
12 {
13 public:
14 enum result
15 {
16 ok
17 };
18 };
19
20 template<typename T> class B : public A
21 {
22 public:
23 typedef A::result result;
24 };
25 }
26
27 int main()
28 {
29 for(float result = 1.0;;);
30 }
31