gcc/testsuite/g++.dg/template/dependent-name11.C
raw| 1 | // PR c++/94057 - template keyword in a typename-specifier. |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template<typename T> struct A { |
| 5 | template<typename U> |
| 6 | struct W { }; |
| 7 | }; |
| 8 | |
| 9 | void |
| 10 | g () |
| 11 | { |
| 12 | // class-key nested-name-specifier template[opt] simple-template-id |
| 13 | struct A<int>::W<int> w; |
| 14 | struct A<int>::template W<int> w2; |
| 15 | } |