gcc/testsuite/g++.dg/parse/error51.C
raw| 1 | // PR c++/14283 |
| 2 | |
| 3 | struct A |
| 4 | {}; |
| 5 | |
| 6 | namespace N |
| 7 | {} |
| 8 | |
| 9 | template <typename> struct C |
| 10 | { |
| 11 | typedef A::template INVALID<void> X0; // { dg-error "23:'INVALID' in 'struct A' does not name a template type" } |
| 12 | typedef N::template INVALID<void> X1; // { dg-error "23:'INVALID' in namespace 'N' does not name a template type" } |
| 13 | }; |