blob: 8ba2c739d30e606806cf30312b805403a3222d93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Build don't link:
// excess errors test - XFAIL *-*-*
// This testcase won't fail if class ::foo is forward-declared in the
// global namespace, nor if class bar is not a template class.
template <typename T = void>
class bar {
public:
friend class foo; // this is not bar::foo, it forward-declares ::foo
class foo {};
bar() { foo(); } // but this should refer to bar::foo
};
bar<> baz;
|