diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-01-29 13:36:15 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-01-29 13:36:15 +0000 |
commit | 83b0201035cfdc1d4d80153f4e19ec98cf059941 (patch) | |
tree | 6fe77dada8271656dd9b3355d2593f1aa24177bd /gcc | |
parent | 5cd2e126f5c5705fa1aa7fafef3d6b94a99593da (diff) | |
download | gcc-83b0201035cfdc1d4d80153f4e19ec98cf059941.zip gcc-83b0201035cfdc1d4d80153f4e19ec98cf059941.tar.gz gcc-83b0201035cfdc1d4d80153f4e19ec98cf059941.tar.bz2 |
libstdc++: Make std::compare_three_way check if <=> is valid (PR 93479)
Currently types that cannot be compared using <=> but which are
convertible to pointers will be compared by converting to pointers
first. They should not be comparable.
PR libstdc++/93479
* libsupc++/compare (__3way_builtin_ptr_cmp): Require <=> to be valid.
* testsuite/18_support/comparisons/object/93479.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions