[Issue 23549] assert(0) as default parameter causes segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 15 06:25:29 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23549

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@maxhaton created dlang/dmd pull request #14698 "Fix Issue 23549, 22587 - Lower
certain noreturn expressions to a comm…" fixing this issue:

- 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