https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104606
--- Comment #1 from julien.philippon at epitech dot eu ---
I forgot to add that the bug triggers only when using C++ 20.
When compiling with `g++ comparison_bug.cxx` the code compiles, but when
compiling with `g++ -std=c++20 comparison_bug.cxx`
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104606
Bug ID: 104606
Summary: Regression in comparison operator resolution with
std::optional
Product: gcc
Version: 11.2.0
Status: UNCONFIRMED
Severity: normal