[Issue 21953] Arrayop accepted on static array, leading to runtime failure or wrong code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 20 21:39:24 UTC 2021


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

moonlightsentinel at disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel at disroot.o
                   |                            |rg
           Hardware|x86_64                      |All
            Summary|arrayop accepted on array   |Arrayop accepted on static
                   |of noreturn, leading to     |array, leading to runtime
                   |runtime failure or wrong    |failure or wrong code
                   |code                        |
                 OS|Linux                       |All

--- Comment #1 from moonlightsentinel at disroot.org ---
The code is accepted and crashes even when replacing noreturn with int - not
specific to noreturn.

The commented statement is rightfully rejected.

--


More information about the Digitalmars-d-bugs mailing list