summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/error50.C
blob: f9c42dd7e41a88de70980d0d504144bdd327a5a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/18747

template<> int i;   // { dg-error "template" }

struct A
{
  static int i;
};

template<> int A::i;     // { dg-error "template" }

template <class T>
struct B
{
  static T i;
};

template<> template <> int B<int>::i; // { dg-error "template|should be 1" }