From d4413948398f162b5cf424f4b66cacdbd07e8cfe Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 1 Jan 2003 00:27:14 +0000 Subject: [PATCH] * g++.dg/template/friend11.C: New test. From-SVN: r60725 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/template/friend11.C | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/friend11.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 57fb0b04a96..c6d9a7b2824 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-01-01 Neil Booth + + * g++.dg/template/friend11.C: New test. + 2003-01-01 Neil Booth * g++.dg/parse/parse1.C: New test. diff --git a/gcc/testsuite/g++.dg/template/friend11.C b/gcc/testsuite/g++.dg/template/friend11.C new file mode 100644 index 00000000000..343b527524e --- /dev/null +++ b/gcc/testsuite/g++.dg/template/friend11.C @@ -0,0 +1,18 @@ +/* PR c++/53 */ +/* { dg-do compile } */ + +template +struct A { + template class B; + + // Did not compile with gcc-2.95.2 (linux i686) :-( + template template friend class A::B; +}; + +template template class A::B { +}; + +int main(){ + A::B ab; + return 0; +} -- 2.30.2