diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-04-14 21:58:03 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-04-14 21:59:15 +0100 |
commit | e1e9e8d7aa7bf1b0d3de34345b6c649e07da7a1e (patch) | |
tree | 104248697a76241f95b6fe9103bfeaafb896e2e5 /gcc | |
parent | f5fa62ed19a1c85cda920bbe05eb075d8f2a0b42 (diff) | |
download | gcc-e1e9e8d7aa7bf1b0d3de34345b6c649e07da7a1e.zip gcc-e1e9e8d7aa7bf1b0d3de34345b6c649e07da7a1e.tar.gz gcc-e1e9e8d7aa7bf1b0d3de34345b6c649e07da7a1e.tar.bz2 |
libstdc++: Fix constraints on std::compare_three_way
My "simplification" of std::compare_three_way's constraints in commit
f214ffb336d582a66149068a2a96b7fcf395b5de was incorrect, because
std::three_way_comparable_with imposes additional restrictions beyond
the <=> expression being valid.
* libsupc++/compare (compare_three_way): Fix constraint so that
BUILTIN-PTR-THREE-WAY does not require three_way_comparable_with.
* testsuite/18_support/comparisons/object/builtin-ptr-three-way.cc:
New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions