https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102712
--- Comment #3 from Giuseppe Ottaviano <ott at fb dot com> --- Oh well this is embarrassing, I was looking at _Optional_payload_base::_M_get() instead of _Optional_base_impl::_M_get() . Sorry for the noise and thanks for fixing this 4 years ago!