From 634dd0ca7756a22847e2327b6270792cbd042495 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 12 Sep 2000 20:59:16 -0400 Subject: [PATCH] new From-SVN: r36381 --- gcc/testsuite/g++.old-deja/g++.pt/inherit2.C | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/inherit2.C diff --git a/gcc/testsuite/g++.old-deja/g++.pt/inherit2.C b/gcc/testsuite/g++.old-deja/g++.pt/inherit2.C new file mode 100644 index 0000000..46637a1 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/inherit2.C @@ -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 struct A { + struct AA { }; + struct AB { }; + struct AC { }; +}; + +template struct B: public A { + friend struct B::AA; // OK + friend AB; // WARNING - needs class-key + friend struct AC; // WARNING - refers to ::AC +}; + +B b; + +int main () { } -- 2.7.4