https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59950
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Martin Sebor from comment #2) > The current top of 6.0 trunk still issues the bogus diagnostic. Confirming > also with prior versions. Actually this example is invalid code as DR 1312 (which was recorded as PR 79832, see that bug for it was fixed in GCC 9+).