diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-08-30 05:36:00 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-08-30 05:36:00 +0000 |
commit | 08017b74f3b9f1b88013d61db295bd50e8b5f113 (patch) | |
tree | eb8fceb540612ff082c7a5483af093682ada23f4 /gcc | |
parent | 1c10870d31b0112b409fef7241126a81d8b4f63b (diff) | |
download | gcc-08017b74f3b9f1b88013d61db295bd50e8b5f113.zip gcc-08017b74f3b9f1b88013d61db295bd50e8b5f113.tar.gz gcc-08017b74f3b9f1b88013d61db295bd50e8b5f113.tar.bz2 |
pt.c (push_template_decl_real): Use template declaration from class type if it exists.
* pt.c (push_template_decl_real): Use template declaration from
class type if it exists.
From-SVN: r28979
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.ns/template13.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/template13.C b/gcc/testsuite/g++.old-deja/g++.ns/template13.C index 193451e..c1bca73 100644 --- a/gcc/testsuite/g++.old-deja/g++.ns/template13.C +++ b/gcc/testsuite/g++.old-deja/g++.ns/template13.C @@ -4,7 +4,7 @@ namespace bar { template<class T> void foo(); // trick it to provide some prior declaration - template<class T>class X; + template<class T>class X; // ERROR - previous declaration } template <typename T> @@ -19,4 +19,4 @@ template<> void bar::foo<int>() } template<class T,class U> -class bar::X{}; // ERROR - does not match declaration - XFAIL *-*-* +class bar::X{}; // ERROR - does not match declaration |