[Issue 22885] New: ImportC: typedef declared with itself should work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 17 08:08:43 UTC 2022


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 at puremagic.com
          Reporter: bugzilla at 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

--


More information about the Digitalmars-d-bugs mailing list