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: [email protected]
Reporter: [email protected]
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.
--
