aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/access8.C
blob: 205b7f2712a27a3c0f30b05d37f6ccdf0ca27d2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/22618

class foo
{
  typedef int memfun;  // { dg-error "private" }
};

template<foo::memfun> // { dg-error "context" }
struct fm_obj { };

template <typename T = foo::memfun> // { dg-error "context" }
struct S {};