public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99429] New: ICE for bool return from <=>
@ 2021-03-06 14:51 msharov at users dot sourceforge.net
  2021-03-06 14:53 ` [Bug c++/99429] " msharov at users dot sourceforge.net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: msharov at users dot sourceforge.net @ 2021-03-06 14:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99429
           Summary: ICE for bool return from <=>
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msharov at users dot sourceforge.net
  Target Milestone: ---

Created attachment 50315
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50315&action=edit
std::strong_ordering and incorrect duration code

When erronously declaring <=> to return bool, g++ crashes:

> g++ -c -std=c++20 chrono.cc
chrono.cc: In instantiation of ‘class duration<1>’:
chrono.cc:44:42:   required from here
chrono.cc:38:20: internal compiler error: Segmentation fault
   38 |     constexpr bool operator<=> (const duration& d) const = default;
      |                    ^~~~~~~~

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

end of thread, other threads:[~2021-08-12  7:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-06 14:51 [Bug c++/99429] New: ICE for bool return from <=> msharov at users dot sourceforge.net
2021-03-06 14:53 ` [Bug c++/99429] " msharov at users dot sourceforge.net
2021-03-06 17:49 ` [Bug c++/99429] [10/11 Regression] " jakub at gcc dot gnu.org
2021-03-06 18:03 ` jakub at gcc dot gnu.org
2021-03-07 16:16 ` redi at gcc dot gnu.org
2021-03-08 16:31 ` jakub at gcc dot gnu.org
2021-08-12  7:34 ` cvs-commit 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).