public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94162] New: ICE [neg] bad return type in defaulted <=>
@ 2020-03-12 23:47 dacamara.cameron at gmail dot com
  2020-03-13 10:21 ` [Bug c++/94162] " jakub at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: dacamara.cameron at gmail dot com @ 2020-03-12 23:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94162
           Summary: ICE [neg] bad return type in defaulted <=>
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dacamara.cameron at gmail dot com
  Target Milestone: ---

Whenever the return type of a defaulted <=> is not a comparison category gcc
ICEs:

#include <compare>

struct S {
  int a;
  bool operator<=>(const S&) const = default;
};

bool b = S{} < S{};

$ gcc -std=c++2a -c t.cpp

t.cpp:5:8: internal compiler error: in genericize_spaceship, at
cp/method.c:1050

    5 |   bool operator<=>(const S&) const = default;

      |        ^~~~~~~~

Please submit a full bug report,

with preprocessed source if appropriate.

See <https://gcc.gnu.org/bugs/> for instructions.

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

end of thread, other threads:[~2024-06-15  2:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-12 23:47 [Bug c++/94162] New: ICE [neg] bad return type in defaulted <=> dacamara.cameron at gmail dot com
2020-03-13 10:21 ` [Bug c++/94162] " jakub at gcc dot gnu.org
2020-03-14 21:45 ` dacamara.cameron at gmail dot com
2020-08-18 13:36 ` mpolacek at gcc dot gnu.org
2020-08-18 13:37 ` mpolacek at gcc dot gnu.org
2020-08-18 13:38 ` mpolacek at gcc dot gnu.org
2020-08-18 13:39 ` mpolacek at gcc dot gnu.org
2021-03-08 16:31 ` jakub at gcc dot gnu.org
2021-03-08 16:32 ` jakub at gcc dot gnu.org
2021-08-05  8:55 ` pinskia at gcc dot gnu.org
2021-08-08 17:56 ` dacamara.cameron at gmail dot com
2021-08-08 21:05 ` pinskia at gcc dot gnu.org
2021-08-09  9:03 ` jakub at gcc dot gnu.org
2021-08-12  7:34 ` cvs-commit at gcc dot gnu.org
2021-08-17  6:25 ` pinskia at gcc dot gnu.org
2023-08-08 15:49 ` arthur.j.odwyer at gmail dot com
2024-06-15  2:23 ` sjames 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).