mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-30 06:25:27 +08:00
cdd2d448d8
The relational operators for std::optional were using the wrong types in the declval expressions used to constrain them. Instead of using const lvalues they were using non-const rvalues, which meant that a type might satisfy the constraints but then give an error when the function body was instantiated. libstdc++-v3/ChangeLog: PR libstdc++/96269 * include/std/optional (operator==, operator!=, operator<) (operator>, operator<=, operator>=): Fix types used in SFINAE constraints. * testsuite/20_util/optional/relops/96269.cc: New test. |
||
---|---|---|
.. | ||
assignment | ||
cons | ||
constexpr | ||
observers | ||
relops | ||
swap | ||
77288.cc | ||
84601.cc | ||
bad_access.cc | ||
hash.cc | ||
in_place.cc | ||
make_optional-2.cc | ||
make_optional.cc | ||
nullopt.cc | ||
requirements.cc | ||
typedefs.cc |