public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110608] New: error on evaluation of concept three_way_comparable on recursive variant
@ 2023-07-09 18:43 walim at gmx dot net
  2023-07-09 18:55 ` [Bug c++/110608] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: walim at gmx dot net @ 2023-07-09 18:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110608
           Summary: error on evaluation of concept three_way_comparable on
                    recursive variant
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: walim at gmx dot net
  Target Milestone: ---

Created attachment 55508
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55508&action=edit
reduced demo of the error situation (-std=c++20 or higher must be active to
reproduce the error)

A recursiv variant type with its data type as base will not compile in g++ with
-std=c++20 or higher, because of problems evaluating the concept
three_way_comparable

Found on g++ 13.2 on some linux installations and reproduced in compiler
explorer.
(No such error in clang++ and vc)

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

* [Bug c++/110608] error on evaluation of concept three_way_comparable on recursive variant
  2023-07-09 18:43 [Bug c++/110608] New: error on evaluation of concept three_way_comparable on recursive variant walim at gmx dot net
@ 2023-07-09 18:55 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-09 18:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think GCC is correct here ...

GCC is the only compiler which implements the `satisfaction of atomic
constraint not depending on itself` part of the C++ standard (there are a few
open bugs dealing with that but just left open because maybe the C++ standard
will change).

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

end of thread, other threads:[~2023-07-09 18:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-09 18:43 [Bug c++/110608] New: error on evaluation of concept three_way_comparable on recursive variant walim at gmx dot net
2023-07-09 18:55 ` [Bug c++/110608] " pinskia 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).