https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92571
Rich Felker <bugdal at aerifal dot cx> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Rich Felker <bugdal at aerifal dot cx> --- Sorry for the noise. Per 6.7.6 Declarators, the expression in [] is assignment-expression, defined in 6.5.16 Assignment operators, which does not include the comma operator. I'm not sure whether there's still an element to this report that the error message could be more useful, but it seems it's not a bug but a quirk in the language spec.