From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Klaus Doldinger <klaus.doldinger64@gmail.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Spaceship-operator: why the data-members must be public / triggers ICE
Date: Wed, 13 Nov 2019 10:35:00 -0000 [thread overview]
Message-ID: <CAH6eHdTE13TOvFePvrmyDtAnNkg8zf58XE1JBu1=nGrS2k3-2w@mail.gmail.com> (raw)
In-Reply-To: <bdc65575-bc43-a9b8-649f-bfd543f9ecb1@gmail.com>
On Wed, 13 Nov 2019 at 09:24, Klaus Doldinger
<klaus.doldinger64@gmail.com> wrote:
>
> Hi all,
>
> in the follwing example
>
> #include <compare> // omitting trigger ICE
>
> template<auto V>
> struct A {};
>
> struct B {
> inline constexpr auto operator<=>(const B& rhs) const = default;
> private:
> int value; // why must this member be public?
> };
>
> int main() {
> A<B{}> t;
> }
>
> why must the member value be public?
Looks like a bug, please report it to bugzilla.
> Side note: if I omit #include <compare> it triggers an ICE.
And please report that to bugzilla too, as a second bug.
next prev parent reply other threads:[~2019-11-13 10:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-13 9:24 Klaus Doldinger
2019-11-13 10:35 ` Jonathan Wakely [this message]
2019-11-13 11:43 ` Klaus Doldinger
2019-11-13 12:47 ` Jonathan Wakely
2019-12-20 8:39 ` Klaus Doldinger
2019-12-20 10:25 ` Jonathan Wakely
2019-12-20 10:30 ` Klaus Doldinger
2019-12-20 10:40 ` Jonathan Wakely
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='CAH6eHdTE13TOvFePvrmyDtAnNkg8zf58XE1JBu1=nGrS2k3-2w@mail.gmail.com' \
--to=jwakely.gcc@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=klaus.doldinger64@gmail.com \
/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).