[Issue 23039] New: importC: declaration with array length has itself in scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 19 13:43:52 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23039
Issue ID: 23039
Summary: importC: declaration with array length has itself in
scope
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ImportC
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: duser at neet.fi
CC: duser at neet.fi
const int x = 1;
void fn1() { char x[x]; }
struct S1 { char x[x]; };
//void fn2() { typeof(x) x; }
//struct S2 { typeof(x) x; };
these give circular reference errors in dmd but work in other compilers (except
gcc doesn't like "struct S1" using the global)
found when testing the typeof PR, it is also affected
--
More information about the Digitalmars-d-bugs
mailing list