1 // Test that we warn about unqualified references to implicit typenames.
2 // Bug: g++ is confused by the binding for ::AN and crashes.
3 // Special g++ Options:
4 // crash test - XFAIL *-*-*
6 template <class T> struct A {
12 template <class T> struct B: public A<T> {
13 friend struct B::AA; // OK
14 friend AB; // WARNING - needs class-key
15 friend struct AC; // WARNING - refers to ::AC