Thread overview
[Issue 21955] CastExp of noreturn is rejected by the backend
Sep 28, 2021
Basile-z
May 24, 2021
https://issues.dlang.org/show_bug.cgi?id=21955

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
           Hardware|x86_64                      |All
            Summary|CastExp of noreturn is      |CastExp of noreturn is
                   |detected too late           |rejected by the backend
                 OS|Linux                       |All

--- Comment #1 from moonlightsentinel@disroot.org ---
The cast is valid because the bottom type is implicitly convertible to any type. But the DIP requires the code to abort as soon as a is accessed, so the backend must emit the appropriate code instead of generating this error

--
June 21, 2021
https://issues.dlang.org/show_bug.cgi?id=21955

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mipri@minimaltype.com

--- Comment #2 from moonlightsentinel@disroot.org ---
*** Issue 22015 has been marked as a duplicate of this issue. ***

--
September 28, 2021
https://issues.dlang.org/show_bug.cgi?id=21955

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #3 from Basile-z <b2.temp@gmx.com> ---
the dup was https://issues.dlang.org/show_bug.cgi?id=21993

--