[Issue 22160] New: importC: Error: redeclaring `module test` as `struct test`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 30 13:55:07 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22160
Issue ID: 22160
Summary: importC: Error: redeclaring `module test` as `struct
test`
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
This compiles:
---
/* test.c */
struct test;
typedef struct test test;
---
This doesn't:
---
/* test.c */
typedef struct test test;
---
Both programs should be considered the same.
--
More information about the Digitalmars-d-bugs
mailing list