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
This commit is contained in:
parent
b0cc7919bf
commit
0851111417
@ -1,3 +1,8 @@
|
||||
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. */
|
||||
|
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Build don't link:
|
||||
// Build don't run:
|
||||
// Origin: James McKelvey <mckelvey@fafnir.com>
|
||||
|
||||
class A
|
||||
|
Loading…
Reference in New Issue
Block a user