constructors correctly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19413
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
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)
{
--- /dev/null
+// Build don't link:
+
+template <class T>
+struct S
+{
+ S(const T&) {}
+ S(int, long);
+};
+
+template S<double>::S(const double&);