https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96269
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- I don't think this is a bug in std::optional, I think it's how C++20 works.
redi at gcc dot gnu.org via Gcc-bugs Thu, 05 Nov 2020 07:41:38 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96269
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- I don't think this is a bug in std::optional, I think it's how C++20 works.