Bug 23002 – importC: struct or union field with same name as type gives circular reference error

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-04-10T09:22:43Z
Last change time
2022-04-16T18:01:27Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
duser

Comments

Comment #0 by duser — 2022-04-10T09:22:43Z
typedef int x; struct S { x x; }; union U { x x; }; test.c(2): Error: circular reference to variable `test.S.x` test.c(3): Error: circular reference to variable `test.U.x`
Comment #1 by dlang-bot — 2022-04-16T02:36:41Z
@WalterBright created dlang/dmd pull request #13990 "fix Issue 23002 - importC: struct or union field with same name as ty…" fixing this issue: - fix Issue 23002 - importC: struct or union field with same name as type gives circular reference error https://github.com/dlang/dmd/pull/13990
Comment #2 by dlang-bot — 2022-04-16T18:01:27Z
dlang/dmd pull request #13990 "fix Issue 23002 - importC: struct or union field with same name as ty…" was merged into master: - d1fa038bf685ee98db652b2e2b41c24473e1bded by Walter Bright: fix Issue 23002 - importC: struct or union field with same name as type gives circular reference error https://github.com/dlang/dmd/pull/13990