summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/static2.C
blob: 881f07ce95a0b21f1fcafca70821f96f68e707cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class A;

template<int A::* P>
class B
{
public:
  static int A::* const p = P; // { dg-error "" }
};

class A
{
public:

int dummy;

B<&A::dummy> d;
};