[Issue 22632] Crash happens when CTFE compares a struct associative array member to null using == when initialization syntax used

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 27 22:43:43 UTC 2021


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

wolframw <wolframw at protonmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE, ice-on-valid-code
                 CC|                            |wolframw at protonmail.com
           Hardware|x86_64                      |All
                 OS|Windows                     |All
           Severity|enhancement                 |normal

--- Comment #1 from wolframw <wolframw at protonmail.com> ---
This can be easily reproduced with an AA literal, no structs necessary:
https://run.dlang.io/gist/32e6bbd4cd2b3c6e339234ec30ccfe92

It looks like CTFE doesn't cover comparisons of AA literals with null.

--


More information about the Digitalmars-d-bugs mailing list