blob: 4f4ada8bc1648cebe4b2507cfde6cbb7cba929af [file] [log] [blame]
// PR c++/61490
// { dg-do compile }
namespace N { void f (); }
void f2 ();
struct A {
friend void N::f () { } // { dg-error "15:friend function definition 'f' cannot have a name qualified with 'N::'" }
friend void ::f2 () { } // { dg-error "15:friend function definition 'f2' cannot have a name qualified with '::'" }
};