blob: e7c6d58ab1ce5cf5eeedf5434795c3f73c552a5a [file] [log] [blame]
// PR c++/42328
template<typename T, typename U>
class freeList
{
public:
void foo() {};
};
class bar {};
class baz;
template<typename T> class freeList<T, baz> { void foo(); };
class baz : protected freeList<bar, baz>
{
template<typename T>
friend
void freeList<T, baz>::foo();
};
baz b;