public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/101056] New: std::compare_partial_order_fallback missing the constraint of "F < E is well-formed"
@ 2021-06-14  6:35 hewillk at gmail dot com
  2021-06-14  7:24 ` [Bug libstdc++/101056] " hewillk at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: hewillk at gmail dot com @ 2021-06-14  6:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101056

            Bug ID: 101056
           Summary: std::compare_partial_order_fallback missing the
                    constraint of "F < E is well-formed"
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

In [cmp#alg-6.3]: Otherwise, if the expressions E == F, E < F, and F < E are
all well-formed and convertible to bool, [...].

#include <compare>
struct E {};
const E e;
E f;
bool operator< (const E&, E&) { return false; }
bool operator==(const E&, E&) { return true; }
auto ord = std::compare_partial_order_fallback(e, f);

https://godbolt.org/z/TTooWPqEz

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-13 14:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14  6:35 [Bug libstdc++/101056] New: std::compare_partial_order_fallback missing the constraint of "F < E is well-formed" hewillk at gmail dot com
2021-06-14  7:24 ` [Bug libstdc++/101056] " hewillk at gmail dot com
2021-06-14  9:01 ` redi at gcc dot gnu.org
2021-06-14 13:05 ` cvs-commit at gcc dot gnu.org
2021-08-11 15:42 ` cvs-commit at gcc dot gnu.org
2021-08-11 16:35 ` cvs-commit at gcc dot gnu.org
2021-08-11 22:53 ` redi at gcc dot gnu.org
2021-08-13 14:18 ` clyon at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).