From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A4C103858C78; Tue, 19 Mar 2024 16:28:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4C103858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710865734; bh=FtxgstXw4vbwrUxgpRHPWwGh7jCf6TQdbBJ0xJtISDU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q3CIW+VtY4DcMGVkPtab2IebwyvxzsokL4RoTnoQUMxY7cHUaOegtETGN8B6CSOpA yo9munZWlJ2lun118TxWurOoesX11LZoG8hfG6GRyBOSzq7pnPfhqomNzNWbqeK7gV 9hNYUX0HAXQtSvoXWjhhDKUF7Pl5pDb+DBuUBj2Q= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114395] [c++20+] std::is_constructible_v result of const reference incorrect Date: Tue, 19 Mar 2024 16:28:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114395 --- Comment #2 from Andrew Pinski --- Except this works with C++20+ for GCC: ``` struct A { int a; }; struct B : public A {}; void f(const A &a) { typedef const B & Btype; Btype b(a); } ```=