Thread overview
[Issue 23899] GCC __restrict and __restrict__ type qualifier in ImportC
May 11, 2023
Walter Bright
May 29, 2023
Walter Bright
May 06, 2023
https://issues.dlang.org/show_bug.cgi?id=23899

mail@ernestocastellotti.it changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ImportC
           Priority|P1                          |P3
           Hardware|x86_64                      |All
           Severity|enhancement                 |normal

--
May 11, 2023
https://issues.dlang.org/show_bug.cgi?id=23899

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
importc.h has:

    #define __restrict

in it, so the preprocessor removes the __restrict the compiler never sees it.

I.e. I cannot reproduce the problem. Perhaps you're using an older version of the compiler?

--
May 29, 2023
https://issues.dlang.org/show_bug.cgi?id=23899

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
Works fine with master.

--