The following valid code snippet triggers an ICE on the 4.5 branch
when compiled and linked with "-flto -g":
=====================================
namespace N
{
struct A {};
}
struct B
{
virtual void foo(N::A) {}
};
int main()
{
B b;
return 0;
}
=====================================
lto1: internal compiler error: in gimple_register_type, at gimple.c:3820
Please submit a full bug report, [etc.]
GCC 4.5.0 and trunk are not affected.
--
Summary: [4.5 regression] ICE with virtual functions
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored, lto
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44264