3 // This testcase won't fail if class ::foo is forward-declared in the
4 // global namespace, nor if class bar is not a template class.
6 template <typename T = void>
9 friend class foo; // this is not bar::foo, it forward-declares ::foo
11 bar() { foo(); } // but this should refer to bar::foo