https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96854
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The versioning is well documented https://gcc.gnu.org/develop.html#num_scheme and the only way how things are fixed is fixing on the mainline and when needed on still open release branches. Those will become an upcoming release at some later point. Generally, it is advisable to use snapshots from the release branches, as otherwise one misses dozens to hundreds of bugfixes that were fixed since the last release.