Bug 22314 – ImportC: fails to parse gnu attributes on enum members
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-09-18T07:50:25Z
Last change time
2021-09-30T01:46:13Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
dave287091
Comments
Comment #0 by dave287091 — 2021-09-18T07:50:25Z
An example taken from https://gcc.gnu.org/onlinedocs/gcc/Enumerator-Attributes.html:
enum E {
oldval __attribute__((deprecated)), // Error: found `__attribute__` when expecting `}`
newval
};
int
fn (void)
{
return oldval;
}
This feature is used in some macOS system headers.
Comment #1 by dlang-bot — 2021-09-19T05:23:34Z
@WalterBright created dlang/dmd pull request #13086 "fix Issue 22314 - ImportC: fails to parse gnu attributes on enum members" fixing this issue:
- fix Issue 22314 - ImportC: fails to parse gnu attributes on enum members
https://github.com/dlang/dmd/pull/13086
Comment #2 by dlang-bot — 2021-09-20T10:01:02Z
dlang/dmd pull request #13086 "fix Issue 22314 - ImportC: fails to parse gnu attributes on enum members" was merged into stable:
- 464df400a67dbeec9b95beb3e1cbac1046870ce3 by Walter Bright:
fix Issue 22314 - ImportC: fails to parse gnu attributes on enum members
https://github.com/dlang/dmd/pull/13086
Comment #3 by dlang-bot — 2021-09-30T01:46:13Z
dlang/dmd pull request #13108 "merge stable" was merged into master:
- 2cce403aaf94a497c15c263c6c75d03fbc2bcbd4 by Walter Bright:
fix Issue 22314 - ImportC: fails to parse gnu attributes on enum members (#13086)
https://github.com/dlang/dmd/pull/13108