12.5.6 For 16-bit code, MPLAB XC16 or MPLAB XC-DSC packed attribute statement causes red bangs in the Editor window

The following statement is marked as an error by the compiler parser but will build:

unsigned long long Bits8 : 8 __attribute__ ((packed));

The parser rules for qualifiers allow for any order, but the expectation is that the qualifiers are all specified before the identifier. Therefore, use one of the statements below to not produce an error:

unsigned long long __attribute__ ((packed)) Bits8 : 8;

OR

__attribute__ ((packed)) unsigned long long Bits8 : 8;