[Issue 23899] New: GCC __restrict and __restrict__ type qualifier in ImportC

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 6 16:24:40 UTC 2023


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

          Issue ID: 23899
           Summary: GCC __restrict and __restrict__ type qualifier in
                    ImportC
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: mail at ernestocastellotti.it

/usr/include/time.h:100:42: error: found ‘__s’ when expecting ‘,’
  100 | extern size_t strftime (char *__restrict __s, size_t __maxsize,
      |                                          ^
/usr/include/time.h:100:45: error: no type-specifier for parameter
  100 | extern size_t strftime (char *__restrict __s, size_t __maxsize,

Code:

extern size_t strftime (char *__restrict __s, size_t __maxsize,
                        const char *__restrict __format,
                        const struct tm *__restrict __tp) __THROW;

--


More information about the Digitalmars-d-bugs mailing list