http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59201
Bug ID: 59201 Summary: [4.9 Regression] error: stmt (0x7f01c4708130) marked modified after optimization pass Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: octoploid at yandex dot com markus@x4 src % cat test.ii class A { public: virtual void m_fn1(); }; class B final : A { ~B(); virtual void m_fn2() { m_fn1(); } }; B::~B() {} markus@x4 src % g++ -c -std=c++11 -O2 test.ii test.ii: In member function ‘virtual void B::m_fn2()’: test.ii:7:16: error: stmt (0x7f96e3a9e130) marked modified after optimization pass: virtual void m_fn2() { m_fn1(); } ^ # .MEM_6 = VDEF <.MEM_2(D)> A::m_fn1 (_5); test.ii:7:16: internal compiler error: verify_ssa failed 0xcc71df verify_ssa(bool) ../../gcc/gcc/tree-ssa.c:1092 0xa7fffc execute_function_todo ../../gcc/gcc/passes.c:1842 0xa80883 execute_todo ../../gcc/gcc/passes.c:1875 0xa826f1 execute_one_ipa_transform_pass ../../gcc/gcc/passes.c:2060 0xa826f1 execute_all_ipa_transforms() ../../gcc/gcc/passes.c:2091 0x822eb0 expand_function ../../gcc/gcc/cgraphunit.c:1753 0x824fe7 expand_all_functions ../../gcc/gcc/cgraphunit.c:1865 0x824fe7 compile() ../../gcc/gcc/cgraphunit.c:2199 0x825504 finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2276 0x6217ae cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4408 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. markus@x4 src %