[Issue 22333] New: ImportC: fails to parse enumerators with = and gnu attributes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 24 08:35:08 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22333
Issue ID: 22333
Summary: ImportC: fails to parse enumerators with = and gnu
attributes
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
An example:
// enum.c
enum E {
oldval __attribute__((deprecated)) = 0,
newval
};
int
fn (void)
{
return oldval;
}
enum.c(3): Error: found `=` when expecting `}`
enum.c(3): Error: identifier or `(` expected
enum.c(5): Error: `=`, `;` or `,` expected
macOS’s version of time.h uses this.
--
More information about the Digitalmars-d-bugs
mailing list