[Bug libstdc++/104606] Regression in comparison operator resolution with std::optional

julien.philippon at epitech dot eu gcc-bugzilla@gcc.gnu.org
Sat Feb 19 16:07:14 GMT 2022


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` this bug happens.


More information about the Gcc-bugs mailing list