digitalmars.D.bugs - [Issue 23039] New: importC: declaration with array length has itself
- d-bugmail puremagic.com (25/25) Apr 19 2022 https://issues.dlang.org/show_bug.cgi?id=23039
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 puremagic.com Reporter: duser neet.fi CC: duser 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 --
Apr 19 2022