Commit 08017b74 by Mark Mitchell

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
parent 1c10870d
...@@ -4,7 +4,7 @@ namespace bar ...@@ -4,7 +4,7 @@ namespace bar
{ {
template<class T> template<class T>
void foo(); // trick it to provide some prior declaration 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> template <typename T>
...@@ -19,4 +19,4 @@ template<> void bar::foo<int>() ...@@ -19,4 +19,4 @@ template<> void bar::foo<int>()
} }
template<class T,class U> template<class T,class U>
class bar::X{}; // ERROR - does not match declaration - XFAIL *-*-* class bar::X{}; // ERROR - does not match declaration
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment