http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49495
Summary: -O3 causes error message "edge points to wrong declaration:" Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: dcb...@hotmail.com Created attachment 24576 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24576 C++ source code I just tried to compile the icedtea6-1.10.2 package with the latest trunk snapshot 20110618 on an AMD x86_64 box. The compiler said /home/dcb/rpmbuild/BUILD/icedtea6-1.10.2/openjdk/hotspot/src/share/vm/adlc/formssel.cpp:4089:1: error: edge points to wrong declaration: <function_decl 0x7ff30ed2d500 _ZN9MatchNodeC2ER8ArchDescRS_i.constprop.30 type <method_type 0x7ff30f6f4498 ... Preprocessed source code attached. Flag -O3 required. It compiles fine with -O2.