This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50226] New: Wrong code with -O -fno-implicit-templates
- From: "d.g.gorbachev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Aug 2011 15:32:35 +0000
- Subject: [Bug c++/50226] New: Wrong code with -O -fno-implicit-templates
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50226
Bug #: 50226
Summary: Wrong code with -O -fno-implicit-templates
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: d.g.gorbachev@gmail.com
Target: i686-pc-linux-gnu
Created attachment 25127
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25127
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.