https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102094
Bug ID: 102094 Summary: d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430 Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- Looks like there's a TYPE_CXX_ODR_P mismatch between D closure frames and user defined types. --- extern(C) int printf(char* s, ...); struct Wow { int a; } void formatValue() { Wow x; void nested() { printf(cast(char*)0, x); } }