new
From-SVN: r36381
This commit is contained in:
parent
5c80f6e6b1
commit
634dd0ca77
20
gcc/testsuite/g++.old-deja/g++.pt/inherit2.C
Normal file
20
gcc/testsuite/g++.old-deja/g++.pt/inherit2.C
Normal file
@ -0,0 +1,20 @@
|
||||
// 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 () { }
|
Loading…
Reference in New Issue
Block a user