[Bug libstdc++/93479] compare_three_way allows comparing arrays

2020-01-29 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93479 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/93479] compare_three_way allows comparing arrays

2020-01-29 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93479 --- Comment #3 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:83b0201035cfdc1d4d80153f4e19ec98cf059941 commit r10-6324-g83b0201035cfdc1d4d80153f4e19ec98cf059941 Author: Jonathan Wakely Date:

[Bug libstdc++/93479] compare_three_way allows comparing arrays

2020-01-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93479 --- Comment #2 from Jonathan Wakely --- i.e. --- a/libstdc++-v3/libsupc++/compare +++ b/libstdc++-v3/libsupc++/compare @@ -525,7 +525,9 @@ namespace std // BUILTIN-PTR-THREE-WAY(T, U) template concept __3way_builtin_ptr_cmp -

[Bug libstdc++/93479] compare_three_way allows comparing arrays

2020-01-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93479 --- Comment #1 from Jonathan Wakely --- (In reply to Barry Revzin from comment #0) > The check for __3way_builtin_ptr_cmp needs to reject arrays, since the > expression declval() <=> declval() does not resolve to a built-in > operator comparing p

[Bug libstdc++/93479] compare_three_way allows comparing arrays

2020-01-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93479 Jonathan Wakely changed: What|Removed |Added Keywords||accepts-invalid Status|UNC