This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49568] [4.7 regression] g++.dg/torture/pr41257-2.C FAILs to link on Tru64 UNIX
- From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 1 Jul 2011 10:03:44 +0000
- Subject: [Bug c++/49568] [4.7 regression] g++.dg/torture/pr41257-2.C FAILs to link on Tru64 UNIX
- Auto-submitted: auto-generated
- References: <bug-49568-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49568
--- Comment #7 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-07-01 10:03:24 UTC ---
> The declaration of the destructor itself do have COMDAT flag.
> The following patch should fix the problem:
> Index: ipa.c
> ===================================================================
> --- ipa.c (revision 175748)
> +++ ipa.c (working copy)
> @@ -871,9 +871,9 @@ function_and_variable_visibility (bool w
>
> We also need to arrange the thunk into the same comdat group as
> the function it reffers to. */
^ typo
> + DECL_COMDAT (node->decl) = DECL_COMDAT (decl_node->decl);
> if (DECL_ONE_ONLY (decl_node->decl))
> {
> - DECL_COMDAT (node->decl) = DECL_COMDAT (decl_node->decl);
> DECL_COMDAT_GROUP (node->decl) = DECL_COMDAT_GROUP
> (decl_node->decl);
> if (DECL_ONE_ONLY (decl_node->decl) && !node->same_comdat_group)
> {
I can include it in this weekend's bootstrap.
Rainer