Open nxmaintainer opened 1 year ago
Ok, I don't think the problem is related to struct at all, my bad.
typedef struct
{
int test1 __attribute__((__deprecated__));
} test2;
works correctly (both CParser and CGenerator), which means the problem related only to prefixing with __attribute__
and it seems reasonable due to xxx_declarator : direct_xxx_declarator asm_label_opt attributes_opt
rule, where attributes_opt
can be defined only after. Ok, I approximately understand how to fix, will try.
fails with
plyparser.ParseError: :3:9: before: __attribute__
I'm trying to fix, but don't understand whyfunction_specifier
doesn't hit here, @inducer if you'd have a moment to take a quick look and point me into a right direction, I'd provide a PR asap.