public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "msharov at users dot sourceforge.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/99429] New: ICE for bool return from <=>
Date: Sat, 06 Mar 2021 14:51:08 +0000 [thread overview]
Message-ID: <bug-99429-4@http.gcc.gnu.org/bugzilla/> (raw)
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;
| ^~~~~~~~
next reply other threads:[~2021-03-06 14:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-06 14:51 msharov at users dot sourceforge.net [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-99429-4@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).