https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104606
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|libstdc++ |c++
Target Milestone|--- |11.3
Keywords| |rejects-valid
Summary|Regression in comparison |[11/12 Regression]
|operator resolution with |comparison operator
|std::optional |resolution with
| |std::optional and
| |-std=c++20
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I am suspecting a front-end change caused this.
clang accepts the same code with libstdc++ which is another reason why I think
it might be a front-end issue.