https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124412
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- There is no "correct" order for these diagnostics. I assume you mean they're not in the same order as the declarations in the source?
