summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/parse/error50.C
blob: dbd8958c360c62303ab3515ba6c2c93d5b97255b (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 "should be 1" }
OpenPOWER on IntegriCloud