[Issue 22587] ternary with function call and assert(0) leads to cod1 assertion
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 15 13:46:02 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22587
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #14698 "Fix Issue 23549, 22587 - Lower certain noreturn
expressions to a comm…" was merged into stable:
- 5dd1f2942482d730418af8d7d3c5f754122116b8 by mhh:
Fix Issue 23549, 22587 - Lower certain noreturn expressions to a comma
expression rather than a cast.
This avoids a backend segfault.
GDC already does this lowering so it may have to be made optional via a
frontend parameter.
https://github.com/dlang/dmd/pull/14698
--
More information about the Digitalmars-d-bugs
mailing list