Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / template / dependent-expr6.C
blob423f1aeeceacdf969f52d4216f5142dfc8cf8c60
1 // { dg-do compile }
3 // Copyright 2007 Free Software Foundation
4 // Contributed by Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6 // PR C++ 34081 ICE
8 class Foo;
10 template < class Foo > class Bar
12   enum Status
13   { OK, NO };
15   enum Status getStatus ()
16   {
17     return status;
18   }
20   Status status;