summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/access18.C
blob: 3338bc932ff1ca0212d2a8b59ee08de8d189a3d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// DR 401

class X {
  typedef int a; // { dg-error "private" }
  static const int b = 5; // { dg-error "private" }
  template <typename>
  struct c; // { dg-error "private" }
};

template <typename = X::a> // { dg-error "context" }
struct A;

template <int = X::b> // { dg-error "context" }
struct B;

template <template <typename> class T = X::c> // { dg-error "context" }
struct C;