https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61472
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- I messed up my test for this too - we only diagnose it if you try to use the default argument, so it seems to be ignored on the redeclaration.