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