Bug 50226 - Wrong code with -O -fno-implicit-templates
Summary: Wrong code with -O -fno-implicit-templates
Status: RESOLVED DUPLICATE of bug 49533
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.7.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2011-08-29 15:32 UTC by Dmitry Gorbachev
Modified: 2011-09-14 18:28 UTC (History)
0 users

See Also:
Host:
Target: i686-pc-linux-gnu
Build:
Known to work: 4.6.2
Known to fail:
Last reconfirmed:


Attachments
testcase (260 bytes, text/plain)
2011-08-29 15:32 UTC, Dmitry Gorbachev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Gorbachev 2011-08-29 15:32:35 UTC
Created attachment 25127 [details]
testcase

Compile with `g++-4.7.0 -O -fno-implicit-templates 1.cc 2.cc'.

GOLD gives warnings:

function main: warning: relocation refers to discarded section
function vtable for Beth<int>: warning: relocation refers to discarded section

BFD LD remains silent.

Appeared between rev. 174012 and 176963.
Comment 1 Dmitry Gorbachev 2011-09-14 18:28:20 UTC
Fixed by r178809.

*** This bug has been marked as a duplicate of bug 49533 ***