From: Mark Mitchell Date: Mon, 30 Aug 1999 05:36:00 +0000 (+0000) Subject: pt.c (push_template_decl_real): Use template declaration from class type if it exists. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=08017b74f3b9f1b88013d61db295bd50e8b5f113;p=gcc.git 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 --- diff --git a/gcc/testsuite/g++.old-deja/g++.ns/template13.C b/gcc/testsuite/g++.old-deja/g++.ns/template13.C index 193451e3d08..c1bca73140c 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 void foo(); // trick it to provide some prior declaration - templateclass X; + templateclass X; // ERROR - previous declaration } template @@ -19,4 +19,4 @@ template<> void bar::foo() } template -class bar::X{}; // ERROR - does not match declaration - XFAIL *-*-* +class bar::X{}; // ERROR - does not match declaration