diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-05 00:38:24 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-05 00:38:24 +0000 |
commit | 53cb4064d955245246f68da42bccc9269c5fcf6e (patch) | |
tree | 6558b6b71bf1650893a99d711b172539d2d1fd15 /gcc/testsuite | |
parent | ebfa610c110f5385a130e74c3970fcbb7bc66b5e (diff) | |
download | gcc-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.C | 16 |
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>; |