https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104721
Bug ID: 104721 Summary: currently_expanding_gimple_stmt isn't cleared properly Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- expand_gimple_basic_block has currently_expanding_gimple_stmt = stmt; ... if (new_bb) return new_bb; <<< currently_expanding_gimple_stmt isn't cleared. ... if (new_bb) { if (can_fallthru) bb = new_bb; else return new_bb; <<< currently_expanding_gimple_stmt isn't cleared. } currently_expanding_gimple_stmt = NULL;