gcc/testsuite/g++.dg/parse/error50.C
raw| 1 | // PR c++/18747 |
| 2 | |
| 3 | template<> int i; // { dg-error "template" } |
| 4 | |
| 5 | struct A |
| 6 | { |
| 7 | static int i; |
| 8 | }; |
| 9 | |
| 10 | template<> int A::i; // { dg-error "template" } |
| 11 | |
| 12 | template <class T> |
| 13 | struct B |
| 14 | { |
| 15 | static T i; |
| 16 | }; |
| 17 | |
| 18 | template<> template <> int B<int>::i; // { dg-error "template|should be 1" } |