[Issue 22062] New: importC: Error: redeclaration of 'TYPE'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 21 18:05:09 UTC 2021


          Issue ID: 22062
           Summary: importC: Error: redeclaration of 'TYPE'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

Reduced test:
typedef struct TYPE TYPE;

This is valid C, e.g:
typedef union tree **tree;

int main()
  union tree *a = 0;
  tree b = 0;        // typed as union tree**
  return 0;


More information about the Digitalmars-d-bugs mailing list