blob: 01b483ea9153e70f7872646d0dc52ca680110fe0 [file] [log] [blame]
// PR 99116 sliding hidden friends under template parm scopes
template<int T> struct Z {
friend struct T; // { dg-error "shadows template parameter" }
};
struct Y {
template<typename S> struct A {};
friend struct S;
};
struct X
{
struct S2 {};
struct In
{
friend struct S2;
};
};
typedef int S2;