[Bug lto/51224] New: ICE with local struct and -flto
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 19 19:40:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51224
Bug #: 51224
Summary: ICE with local struct and -flto
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
The following code snippet triggers an ICE when compiled with "-flto -g" since
the introduction of LTO (GCC 4.5.0):
=========================================
void foo()
{
struct A
{
typedef void (*F)();
static F bar() { return 0; }
};
A::bar();
}
=========================================
bug.cc:10:1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:21346
Please submit a full bug report, [etc.]
More information about the Gcc-bugs
mailing list