www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22422] New: ImportC: unable to parse attributes after a


          Issue ID: 22422
           Summary: ImportC: unable to parse attributes after a function
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dave287091 gmail.com

Gnu attributes syntax is pretty messy, but one of the allowed locations is
after the name of a parameter.

For example:

static inline void
foo(void *__dst __attribute__((align_value(64))), const void *__src) // Error:
missing comma

That specific attribute is clang-specific,

Oct 18 2021