summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/access8.C
blob: 45f4be70288aaaad7a8a472e2adf62083c030f3b (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>
struct fm_obj { }; // { dg-error "context" } 

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