https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115846
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think it is due to: include/std/optional: _GLIBCXX20_CONSTEXPR ~_Storage() { } Which was done in r12-4389-g476f305b6cf11d (for https://wg21.link/p2231 ).