gcc/testsuite/g++.dg/parse/template-keyword4.C
raw| 1 | // PR c++/104608 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | class S; |
| 5 | using Parameter = S; |
| 6 | typedef S Parameter2; |
| 7 | |
| 8 | template <typename R> class Function |
| 9 | : public R |
| 10 | { |
| 11 | Function(); |
| 12 | }; |
| 13 | template <typename R> |
| 14 | Function<R>::Function() { |
| 15 | this->template Parameter<R>(); |
| 16 | this->template Parameter2<R>(); |
| 17 | } |