1 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2 // Misleading diagnostic
3
4 struct A
5 {
6 friend void A::foo(); // { dg-error "3:member functions are implicitly friends" }
7 friend A::~A(); // { dg-error "3:member functions are implicitly friends" }
8 };
9