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

          Issue ID: 22422
           Summary: ImportC: unable to parse attributes after a function
                    parameter
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

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,
https://clang.llvm.org/docs/AttributeReference.html#align-value

--

Reply via email to