summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-05 00:38:24 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-05 00:38:24 +0000
commit53cb4064d955245246f68da42bccc9269c5fcf6e (patch)
tree6558b6b71bf1650893a99d711b172539d2d1fd15 /gcc/testsuite
parentebfa610c110f5385a130e74c3970fcbb7bc66b5e (diff)
downloadgcc-53cb4064d955245246f68da42bccc9269c5fcf6e.tar.gz
* pt.c (do_type_instantiation): Add complain parm; don't complain
if called recursively. * cp-tree.h, parse.y: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35498 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/explicit80.C16
1 files changed, 16 insertions, 0 deletions
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<T>::B.
+// Build don't link:
+
+template <class T>
+struct A
+{
+ public:
+ ~A() { };
+
+ class B;
+};
+
+class A<int>::B { };
+
+template class A<int>;
+template class A<double>;