https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103249
Bug ID: 103249 Summary: [11/12 Regression] ICE in clear_padding_type Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: marxin at gcc dot gnu.org, unassigned at gcc dot gnu.org Depends on: 103248 Target Milestone: --- Host: x86_64-linux-gnu Target: arm-linux-gnueabi +++ This bug was initially created as a clone of Bug #103248 +++ The ICE mentioned by richi can be reduced to: class A {}; class B {}; class C : B, virtual A {}; class D : virtual C, B {}; class E : virtual D, B {}; class F : E {}; int main () { F f; __builtin_clear_padding (&f); } which ICEs since r11-5196-g1bea0d0aa5936cb36b6f86f721ca03c1a1bb601d Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103248 [Bug 103248] ICE in operation_could_trap_helper_p, at tree-eh.c:2479