Commit 42da2fd8 by Mark Mitchell Committed by Mark Mitchell

pt.c (check_explicit_specialization): Handle overloaded constructors correctly.

	* pt.c (check_explicit_specialization): Handle overloaded
	constructors correctly.

From-SVN: r19413
parent 7101ca01
Sun Apr 26 12:10:18 1998 Mark Mitchell <mmitchell@usa.net>
* pt.c (check_explicit_specialization): Handle overloaded
constructors correctly.
Thu Apr 23 21:19:06 1998 Jason Merrill <jason@yorick.cygnus.com>
* cp-tree.def: Add WRAPPER. USER_CONV now only has two ops.
......
......@@ -1041,12 +1041,10 @@ check_explicit_specialization (declarator, decl, template_count, flags)
return decl;
}
fns = TREE_VEC_ELT(CLASSTYPE_METHOD_VEC (ctype),
is_constructor ? 0 : 1);
name = is_constructor ? ctor_identifier : dtor_identifier;
}
else
fns = lookup_fnfields (TYPE_BINFO (ctype), name,
1);
fns = lookup_fnfields (TYPE_BINFO (ctype), name, 1);
if (fns == NULL_TREE)
{
......
// Build don't link:
template <class T>
struct S
{
S(const T&) {}
S(int, long);
};
template S<double>::S(const double&);
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