[Issue 22972] importC: static variable cannot be read at compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 5 04:21:29 UTC 2022


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
Simplified:

struct op {
        char text[4];
};
struct op ops[] = {
        { "123" }
};

char *y = ops[0].text;

--


More information about the Digitalmars-d-bugs mailing list