From: Jason Merrill Date: Sat, 5 Aug 2000 00:38:24 +0000 (-0400) Subject: pt.c (do_type_instantiation): Add complain parm; don't complain if called recursively. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=baf7e33b4139b2c00dd84967a1f3de1b11363060;p=gcc.git pt.c (do_type_instantiation): Add complain parm; don't complain if called recursively. * pt.c (do_type_instantiation): Add complain parm; don't complain if called recursively. * cp-tree.h, parse.y: Adjust. From-SVN: r35498 --- diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit80.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit80.C new file mode 100644 index 00000000000..c53982daa81 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/explicit80.C @@ -0,0 +1,16 @@ +// Bug: We were complaining about explicit instantiation of A::B. +// Build don't link: + +template +struct A +{ + public: + ~A() { }; + + class B; +}; + +class A::B { }; + +template class A; +template class A;