From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128115 invoked by alias); 13 Nov 2019 11:43:14 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 128102 invoked by uid 89); 13 Nov 2019 11:43:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=H*f:sk:CAH6eHd X-HELO: mail-wr1-f52.google.com Received: from mail-wr1-f52.google.com (HELO mail-wr1-f52.google.com) (209.85.221.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 13 Nov 2019 11:43:12 +0000 Received: by mail-wr1-f52.google.com with SMTP id w9so2009153wrr.0 for ; Wed, 13 Nov 2019 03:43:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=RYld7e50hqKpkRKCiaeQt5ITFgQ/5Olrh2INZclfQ8s=; b=ByNjZO/RvPAzgeWC+z1+XXZCr9URBy6w9xgOqD1vt8xHCJj1dESEaarw5aVJKGwum0 qhBy3ftbOlUiOTZYp3SpsLtwmGOY9Lq74FkAdFUC9EsBCw+ReiN3jQMCgbHK5ximH19E cee3rXqtOkGY0vr1VT50sAFzRizgwbzx545UecVtuzxrsxL/ERHigUkVSohR5S3/wV6E Ps/AwZfAFhQ4S5MKJO6PR7F5r87AhvQigm3SOVCV+hfOIHMzadd5FXnqCzYdX1dWJ63x QK7AhuzcnQBbtvjbhdkKzWfmHOSSQYJyCM0pWvFT1VmL8SkdqWSfj71n/YQG0eC9T0re jgYg== Return-Path: Received: from [10.0.28.12] ([143.93.17.27]) by smtp.gmail.com with ESMTPSA id k14sm2764555wrw.46.2019.11.13.03.43.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Nov 2019 03:43:09 -0800 (PST) Subject: Re: Spaceship-operator: why the data-members must be public / triggers ICE To: gcc-help@gcc.gnu.org References: From: Klaus Doldinger Message-ID: Date: Wed, 13 Nov 2019 11:43:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-11/txt/msg00033.txt.bz2 Am 13.11.19 um 11:35 schrieb Jonathan Wakely: > On Wed, 13 Nov 2019 at 09:24, Klaus Doldinger > wrote: >> >> Hi all, >> >> in the follwing example >> >> #include // omitting trigger ICE >> >> template >> 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 t; >> } >> >> why must the member value be public? > > Looks like a bug, please report it to bugzilla. Done. > >> Side note: if I omit #include it triggers an ICE. > > And please report that to bugzilla too, as a second bug. > Done.