https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66590
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #5) > Oh yes this issue: > case 1: { A tmp; return 1; } break; Which was PR 20681 but that didn't handle this case.