https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102273
Bug ID: 102273 Summary: ICE in expand_DEFERRED_INIT, at internal-fn.c:3024 since r12-3433-ga25e0b5e6ac8a77a Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: qing.zhao at oracle dot com Target Milestone: --- The following fails: $ cat debug.c void bar(); struct A { char d; } foo() { struct A e; void baz() { bar(e); } } $ gcc debug.c -ftrivial-auto-var-init=zero -c during RTL pass: expand debug.c: In function ‘foo’: debug.c:6:12: internal compiler error: in expand_DEFERRED_INIT, at internal-fn.c:3024 6 | struct A e; | ^ 0x1046342 expand_DEFERRED_INIT /home/marxin/Programming/gcc/gcc/internal-fn.c:3024 0x104cfd8 expand_internal_call(internal_fn, gcall*) /home/marxin/Programming/gcc/gcc/internal-fn.c:4193 0x104d007 expand_internal_call(gcall*) /home/marxin/Programming/gcc/gcc/internal-fn.c:4201 0xcc2fa6 expand_call_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.c:2749 0xcc7434 expand_gimple_stmt_1 /home/marxin/Programming/gcc/gcc/cfgexpand.c:3876 0xcc7b3c expand_gimple_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.c:4040 0xcd052d expand_gimple_basic_block /home/marxin/Programming/gcc/gcc/cfgexpand.c:6082 0xcd2dcd execute /home/marxin/Programming/gcc/gcc/cfgexpand.c:6808 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.