Commit 634dd0ca by Jason Merrill

new

From-SVN: r36381
parent 5c80f6e6
// Test that we warn about unqualified references to implicit typenames.
// Bug: g++ is confused by the binding for ::AN and crashes.
// Special g++ Options:
// crash test - XFAIL *-*-*
template <class T> struct A {
struct AA { };
struct AB { };
struct AC { };
};
template <class T> struct B: public A<T> {
friend struct B::AA; // OK
friend AB; // WARNING - needs class-key
friend struct AC; // WARNING - refers to ::AC
};
B<int> b;
int main () { }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment