https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108962
Bug ID: 108962
Summary: d: Don't generate code that throws exceptions when
compiling with `-fno-exceptions'
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ibuclaw at gcc dot gnu.org
Target Milestone: ---
There are a few constructs that implicitly raise an Error exception, for
example, `final switch`.
```
void main()
{
final switch (0)
{
case 1:
return;
}
}
```
It might be more desirable to instead abort the runtime, optionally creating a
trace before exiting.