[Issue 22422] New: ImportC: unable to parse attributes after a function parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 18 19:51:51 UTC 2021


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: nobody at puremagic.com
          Reporter: dave287091 at 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,
https://clang.llvm.org/docs/AttributeReference.html#align-value

--


More information about the Digitalmars-d-bugs mailing list