https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82823
Bug ID: 82823 Summary: ICE in ix86_expand_prologue, at config/i386/i386.c:13171 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: law at gcc dot gnu.org Target Milestone: --- Host: x86_64-linux-gnu Target: i686-linux-gnu Starting from r252998 we ICE on following valid code: $ cat ice2.ii class a { public: ~a (); int b; }; class c { public: a m_fn1 (); }; class d { int e (); c f; }; int d::e () { return f.m_fn1 ().b; } $ g++ -c -O1 -fstack-clash-protection -march=i686 ice2.ii -m32 -c during RTL pass: pro_and_epilogue ice2.ii: In member function ‘int d::e()’: ice2.ii:21:1: internal compiler error: in ix86_expand_prologue, at config/i386/i386.c:13171 } ^ 0x16247c3 ix86_expand_prologue() ../../gcc/config/i386/i386.c:13171 0x1985ad2 gen_prologue() ../../gcc/config/i386/i386.md:13135 0x160281a target_gen_prologue ../../gcc/config/i386/i386.md:19431 0xe251b4 make_prologue_seq ../../gcc/function.c:5879 0xe25394 thread_prologue_and_epilogue_insns() ../../gcc/function.c:5996 0xe263a0 rest_of_handle_thread_prologue_and_epilogue ../../gcc/function.c:6487 0xe26422 execute ../../gcc/function.c:6529