1 // { dg-do assemble } 2 // Origin: Martin v. L�wis <loewis@informatik.hu-berlin.de> 3 // Test for resolution of core issue 125. 4 5 struct A{ 6 struct B{}; 7 }; 8 9 A::B C(); 10 11 namespace B{ 12 A C(); 13 } 14 15 class Test{ 16 friend A (::B::C)(); // Ok 17 friend A::B (::C)(); // Ok 18 friend A::B::C(); // { dg-error "" } no A::B::C 19 }; 20