www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - =?UTF-8?B?W0lzc3VlIDIzNzAxXSBOZXc6IGNvbXBpbGFibGUvdGVzdDIzMjE0?=

https://issues.dlang.org/show_bug.cgi?id=23701

          Issue ID: 23701
           Summary: compilable/test23214.c:3:26: error: expected ‘=’,
‘,’,
                    ‘;’, ‘asm’ or ‘__attribute__’ before
‘uintptr_t’
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

When compiling the test with `gcc -std=c11 -fsyntax-only`

compilable/test23214.c:3:26: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or
‘__attribute__’ before ‘uintptr_t’
    3 | typedef unsigned __int64 uintptr_t;
      |                          ^~~~~~~~~


Test:
```
// https://issues.dlang.org/show_bug.cgi?id=23214

typedef unsigned __int64 uintptr_t;
```

--
Feb 12 2023