https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104025
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Yeah, the reason that -fcompare-debug fails isn't that -g vs. -g0 would emit different line number, but that -fcompare-debug uses -w for one of the compilations so that warnings aren't emitted multiple times and so one compilation is with -Wmissing-template-keyword and one without.