blob: de5cfafc21fb5a0864289c7878a8ba731f51b5b2 [file] [log] [blame]
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// Misleading diagnostic
struct A
{
friend void A::foo(); // { dg-error "3:member functions are implicitly friends" }
friend A::~A(); // { dg-error "3:member functions are implicitly friends" }
};