digitalmars.D.bugs - [Issue 22885] New: ImportC: typedef declared with itself should work
- d-bugmail puremagic.com (23/23) Mar 17 2022 https://issues.dlang.org/show_bug.cgi?id=22885
https://issues.dlang.org/show_bug.cgi?id=22885 Issue ID: 22885 Summary: ImportC: typedef declared with itself should work Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: bugzilla digitalmars.com 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 --
Mar 17 2022