Thread overview
[Issue 22972] importC: static variable cannot be read at compile time
Apr 05, 2022
Walter Bright
Apr 05, 2022
Dlang Bot
Apr 05, 2022
Dlang Bot
Apr 05, 2022
Dlang Bot
April 05, 2022
https://issues.dlang.org/show_bug.cgi?id=22972

Walter Bright <bugzilla@digitalmars.com> changed:

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

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

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

char *y = ops[0].text;

--
April 05, 2022
https://issues.dlang.org/show_bug.cgi?id=22972

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright updated dlang/dmd pull request #13948 "fix Issue 22971 - importC: can't initialize unsigned char array with …" fixing this issue:

- fix Issue 22972 - importC: static variable cannot be read at compile time

https://github.com/dlang/dmd/pull/13948

--
April 05, 2022
https://issues.dlang.org/show_bug.cgi?id=22972

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #13949 "fix Issue 22972 - importC: static variable cannot be read at compile …" fixing this issue:

- fix Issue 22972 - importC: static variable cannot be read at compile time

https://github.com/dlang/dmd/pull/13949

--
April 05, 2022
https://issues.dlang.org/show_bug.cgi?id=22972

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13949 "fix Issue 22972 - importC: static variable cannot be read at compile …" was merged into master:

- 0072b8ad6251c57d78651baa0ca7ff6adda60f71 by Walter Bright:
  fix Issue 22972 - importC: static variable cannot be read at compile time

https://github.com/dlang/dmd/pull/13949

--