Bug 22885 – ImportC: typedef declared with itself should work
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-17T08:08:43Z
Last change time
2022-03-21T20:06:19Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2022-03-17T08:08:43Z
typedef int T;
void test()
{
typedef T* T; // should declare a new T that is an int*
int i;
T p = &i;
}
Instead, gives:
test.c(5): Error: alias `T` recursive alias declaration
Comment #1 by dlang-bot — 2022-03-21T08:07:04Z
@WalterBright created dlang/dmd pull request #13852 "fix Issue 22885 - ImportC: typedef declared with itself should work" fixing this issue:
- fix Issue 22885 - ImportC: typedef declared with itself should work
https://github.com/dlang/dmd/pull/13852
Comment #2 by dlang-bot — 2022-03-21T20:06:19Z
dlang/dmd pull request #13852 "fix Issue 22885 - ImportC: typedef declared with itself should work" was merged into master:
- 3c601fdee17981bb0f48baedf0cf09cabea299fc by Walter Bright:
fix Issue 22885 - ImportC: typedef declared with itself should work
https://github.com/dlang/dmd/pull/13852