// PR c++/22618 class foo { typedef int memfun; // { dg-error "private" } }; template struct fm_obj { }; // { dg-error "context" } template // { dg-error "context" } struct S {};