[Issue 23697] New: compilable/test22705.c:4:1: error: unknown type name ‘Ta’
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 12 15:20:25 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23697
Issue ID: 23697
Summary: compilable/test22705.c:4:1: error: unknown type name
‘Ta’
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
When compiling the test with `gcc -std=c11 -fsyntax-only`
compilable/test22705.c:4:1: error: unknown type name ‘Ta’
4 | Ta *pa;
| ^~
compilable/test22705.c:8:1: error: unknown type name ‘Tb’; did you mean ‘Ta’?
8 | Tb *pb;
| ^~
| Ta
Original test content:
```
Ta *pa;
struct Sa { int x; };
typedef struct Sa Ta;
Tb *pb;
struct Sb;
typedef struct Sb { int x; } Tb;
```
--
More information about the Digitalmars-d-bugs
mailing list