https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118043
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Alejandro Colomar from comment #3) > (In reply to Andrew Pinski from comment #1) > > /* The two specs designate different size arguments. It's okay > > for the explicit spec to specify a size where none is provided > > by the implicit (VLA) one, as in: > > Thanks for clarifying where the warning comes from. > > > __attribute__ ((access (read_write, 1, 2))) > > void f (int*, int); > > but not for two explicit access attributes to do that. */ > > Where's this quote from? I don't find that in the manual. It comes from the source around the spot where the warning is located. This is why I said there is a missing documentation.