blob: 814892d2afaf890183fa9a982481c09a372bef54 [file] [log] [blame]
// PR c++/84348
// { dg-do compile { target c++11 } }
template<typename> struct A
{
friend auto foo; // { dg-error "cannot be declared friend" }
};