Community
Participate
Working Groups
Using CDT Core 7.2.100.202105180159 CDT ignores (accepts but does not use) __attribute__'s after pointer operator in declarations: int * __attribute__((__aligned__(1))) p1; is parsed as int *p1; As far as I know, it is because result of __attribute_decl_seq() in consumePointerOperators() in GNUCSourceParser is not assigned to anything. Moreover, if a qualifier comes after an attribute (GCC allows free order for all of these after pointer operator), that qualifier is considered an identifier, and declaration becomes a problem. Example of problematic declaration: int * __attribute__((__aligned__(2))) const p2; I think a case for __attribute__ should be added to the switch in consumePointerOperators. Then __attribute_decl_seq call at start is not needed.