Bug 22422 – ImportC: parse gnu attributes after a function parameter
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-18T19:51:51Z
Last change time
2021-12-14T10:34:18Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
dave287091
Comments
Comment #0 by dave287091 — 2021-10-18T19:51:51Z
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
Comment #1 by dlang-bot — 2021-11-14T08:25:52Z
@WalterBright created dlang/dmd pull request #13300 "fix Issue 22422 - ImportC: parse gnu attributes after a function para…" fixing this issue:
- fix Issue 22422 - ImportC: parse gnu attributes after a function parameter
https://github.com/dlang/dmd/pull/13300
Comment #2 by dlang-bot — 2021-11-14T09:26:26Z
dlang/dmd pull request #13300 "fix Issue 22422 - ImportC: parse gnu attributes after a function para…" was merged into stable:
- 5afe6c22aab76086e4c89db504e0f38c46bf22b3 by Walter Bright:
fix Issue 22422 - ImportC: parse gnu attributes after a function parameter
https://github.com/dlang/dmd/pull/13300
Comment #3 by dlang-bot — 2021-12-14T10:34:18Z
dlang/dmd pull request #13421 "merge stable" was merged into master:
- 1613f1b5687504f77ed2e26ad1a288c6e7ec25aa by Walter Bright:
fix Issue 22422 - ImportC: parse gnu attributes after a function parameter (#13300)
https://github.com/dlang/dmd/pull/13421