gcc/testsuite/g++.dg/template/dependent-expr6.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Copyright 2007 Free Software Foundation |
| 4 | // Contributed by Andreas Krebbel <[email protected]> |
| 5 | |
| 6 | // PR C++ 34081 ICE |
| 7 | |
| 8 | class Foo; |
| 9 | |
| 10 | template < class Foo > class Bar |
| 11 | { |
| 12 | enum Status |
| 13 | { OK, NO }; |
| 14 | |
| 15 | enum Status getStatus () |
| 16 | { |
| 17 | return status; |
| 18 | } |
| 19 | |
| 20 | Status status; |
| 21 | }; |