https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110471
Bug ID: 110471 Summary: d: Don't generate code that throws exceptions when compiling with `-fno-exceptions' Product: gcc Version: 9.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- The predefined version conditions D_ModuleInfo, D_Exceptions, and D_TypeInfo were added in r9-7112. However individual feature flags do not turn off these versions. For example. this should succeed compilation. // { dg-options "-fno-exceptions" } version (D_Exceptions) static assert(false); // expected to never trigger.