gcc/testsuite/g++.dg/template/partial-specialization8.C
raw| 1 | // PR c++/55639 |
| 2 | |
| 3 | template <int number> |
| 4 | struct SomeClass |
| 5 | { |
| 6 | SomeClass() { } |
| 7 | |
| 8 | template <typename E, int number2> |
| 9 | struct Fun { |
| 10 | static void |
| 11 | fun() { } |
| 12 | }; |
| 13 | }; |
| 14 | |
| 15 | template <int number> |
| 16 | template <typename E> |
| 17 | struct SomeClass<number>::template Fun<E, 0> { // { dg-error "template" } |
| 18 | static void fun() { } |
| 19 | }; |