[Issue 22972] New: importC: static variable cannot be read at compile time
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 2 20:57:30 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22972
Issue ID: 22972
Summary: importC: static variable cannot be read at compile
time
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ImportC, rejects-valid
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: duser at neet.fi
CC: duser at neet.fi
struct op {
char text[4];
};
struct op ops[] = {
{ "123" }
};
char *x[] = { ops[0].text };
Error: static variable `ops` cannot be read at compile time
--
More information about the Digitalmars-d-bugs
mailing list