http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61160
Bug ID: 61160 Summary: [4.9/4.10 Regression] wrong code with -O3 (or ICE: verify_cgraph_node failed: edge points to wrong declaration) Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 32785 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32785&action=edit reduced testcase (from g++.old-deja/g++.jason/thunk1.C) Output: $ g++ -O3 testcase.C $ valgrind ./a.out ==21283== Invalid read of size 8 ==21283== at 0x400740: CExample::MixinFunc(int, A) [clone .constprop.0] (testcase.C:3) ==21283== by 0x40062A: main (testcase.C:27) ==21283== Address 0x1 is not stack'd, malloc'd or (recently) free'd Tested revisions: r210308 - fail 4.9 r210307 - fail 4.8 r210303 - OK