summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/access6.C
blob: 59d92975b9577848208ab3db6712a425be23fb42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }

template <int I>
struct S {
  void g();
};

class C {
  static const int i = 3; // { dg-bogus "" } private
public:
  S<C::i>* f(); // { dg-bogus "" } redeclared
};

S<C::i>* C::f() { // { dg-bogus "" } private
  return 0;
}