https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465
--- Comment #22 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Geoff from comment #16) > This appears to still be an issue in gcc 11.2 minimal reproduced example > using std::optional https://godbolt.org/z/ebbMe3Wva. This was fixed by the fix for PR 107206.