Bug 22304 – importC: parsing gnu-style attributes fails if return type is pointer

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-09-14T01:12:25Z
Last change time
2021-09-30T01:46:10Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
dave287091

Comments

Comment #0 by dave287091 — 2021-09-14T01:12:25Z
The following c code compiles: int __attribute__((__always_inline__)) foo(void){ return 0; } However, the following does not: int * __attribute__((__always_inline__)) // Error: identifier or `(` expected foo(void){ return 0; } // Error: identifier or `(` expected
Comment #1 by dlang-bot — 2021-09-16T05:00:57Z
@WalterBright created dlang/dmd pull request #13077 "fix Issue 22304 - importC: parsing gnu-style attributes fails if retu…" fixing this issue: - fix Issue 22304 - importC: parsing gnu-style attributes fails if return type is pointer https://github.com/dlang/dmd/pull/13077
Comment #2 by dlang-bot — 2021-09-18T05:41:29Z
dlang/dmd pull request #13077 "fix Issue 22304 - importC: parsing gnu-style attributes fails if retu…" was merged into stable: - ff6b5838d0a273679586ecf4a7967cc4b7759850 by Walter Bright: fix Issue 22304 - importC: parsing gnu-style attributes fails if return type is pointer https://github.com/dlang/dmd/pull/13077
Comment #3 by dlang-bot — 2021-09-30T01:46:10Z
dlang/dmd pull request #13108 "merge stable" was merged into master: - df423a97383db883dac565f9c67927dcd5d397bc by Walter Bright: fix Issue 22304 - importC: parsing gnu-style attributes fails if return type is pointer (#13077) https://github.com/dlang/dmd/pull/13108