[Issue 15575] Wrong value for static immutable struct with union

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 28 10:32:55 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
The code does not crash but produces the following errors now:

test.d(27): Error: uninitialized variable `components` cannot be returned from
CTFE
test.d(27):        while evaluating `pragma(msg, colorA.components)`
test.d(30):        while evaluating `pragma(msg, colorA)`

--


More information about the Digitalmars-d-bugs mailing list