public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Klaus Doldinger <klaus.doldinger64@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Re: Spaceship-operator: why the data-members must be public / triggers ICE
Date: Wed, 13 Nov 2019 11:43:00 -0000	[thread overview]
Message-ID: <af60bce3-f092-6ecb-50db-bfbabc5dc00c@gmail.com> (raw)
In-Reply-To: <CAH6eHdTE13TOvFePvrmyDtAnNkg8zf58XE1JBu1=nGrS2k3-2w@mail.gmail.com>



Am 13.11.19 um 11:35 schrieb Jonathan Wakely:
> 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.

Done.

> 
>> Side note: if I omit #include <compare> it triggers an ICE.
> 
> And please report that to bugzilla too, as a second bug.
> 

Done.

  reply	other threads:[~2019-11-13 11:43 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
2019-11-13 11:43   ` Klaus Doldinger [this message]
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=af60bce3-f092-6ecb-50db-bfbabc5dc00c@gmail.com \
    --to=klaus.doldinger64@gmail.com \
    --cc=gcc-help@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).