Commit 08511114 by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

pt.c (check_explicit_specialization): Clone constructors and destructors.

	* pt.c (check_explicit_specialization): Clone constructors and
	destructors.

	* g++.old-deja/g++.pt/spec33.C: Change from "Build don't link" to
	"Build don't run".

From-SVN: r39229
parent b0cc7919
2001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c (check_explicit_specialization): Clone constructors and
destructors.
2001-01-23 Nathan Sidwell <nathan@codesourcery.com>
* decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
......
......@@ -1688,6 +1688,11 @@ check_explicit_specialization (declarator, decl, template_count, flags)
It's just the name of an instantiation. But, it's not
a request for an instantiation, either. */
SET_DECL_IMPLICIT_INSTANTIATION (decl);
else if (DECL_CONSTRUCTOR_P (decl) || DECL_DESTRUCTOR_P (decl))
/* This is indeed a specialization. In case of constructors
and destructors, we need in-charge and not-in-charge
versions in V3 ABI. */
clone_function_decl (decl, /*update_method_vec_p=*/0);
/* Register this specialization so that we can find it
again. */
......
2001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-deja/g++.pt/spec33.C: Change from "Build don't link" to
"Build don't run".
2001-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* gcc.c-torture/execute/20010123-1.c: New test.
......
// Build don't link:
// Build don't run:
// Origin: James McKelvey <mckelvey@fafnir.com>
class A
......
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