digitalmars.D.bugs - [Issue 22422] New: ImportC: unable to parse attributes after a
- d-bugmail puremagic.com (25/25) Oct 18 2021 https://issues.dlang.org/show_bug.cgi?id=22422
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 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, https://clang.llvm.org/docs/AttributeReference.html#align-value --
Oct 18 2021