From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C47639540ED; Tue, 23 Jun 2020 07:39:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C47639540ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592897964; bh=GbCwV8kivMXC7KI2o3DLQmqtOBsM71k9cmpwOaV3RqQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u8kpieibEFltNPgqEJDqwZvA2zq0N8PFOigSaAvilzP+tHewHrbkcvefylzvZAaUZ ox1OzDjbIH0twfLjASJTEVpRQBWk7M2WDMexG5n91dMJopn1OnybzFXz2iAyfhhYf4 TBDpXy3YvHHDzQFmwxPaEkTjbqeeu9NI/3c9Vhsc= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/95832] std::vector specialization leading std::variant ctor treating it as int rather than bool Date: Tue, 23 Jun 2020 07:39:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on bug_status everconfirmed target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2020 07:39:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95832 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2020-06-23 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Target Milestone|--- |11.0 --- Comment #4 from Jonathan Wakely --- (In reply to fiesh from comment #0) > The following code returned 1 when compiled with gcc-9 but returns 0 with > gcc-10. That's because gcc-10 implements http://wg21.link/p0608r3 GCC 10 doesn't implement http://wg21.link/p1957r2 so we still need the additional constraint in variant's constructors that P0608R3 added: "and if= Ti is cv bool, remove_cvref_t is bool."=