From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 157823858C98; Sat, 6 Apr 2024 21:30:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 157823858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712439050; bh=LRa4T7/JO7Hi01M22Tr6ckrBzVz56R4KLZXpt+aKp5I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QSLNnrsjQViE+CJp3OuZahOuZ/GYDQJ0oKqD1KARtdpq+XXF4Fj24wsbAAxJqVn9Q MTYwxBPqbhcXd80DBFb0agwVG1ZF4n+jtQBC91Tf6OjlvL5Ahr+rcXisMqqoo315i9 lmMxxZWI+PLzdE/LoizvdZun6RiEeY0g5B2NnYBI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105520] Ignores constraint in auto declaration with braced-init-list Date: Sat, 06 Apr 2024 21:30:49 +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: 10.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status blocked everconfirmed cf_reconfirmed_on 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=3D105520 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Blocks| |67491 Ever confirmed|0 |1 Last reconfirmed| |2024-04-06 --- Comment #2 from Andrew Pinski --- Confirmed. This works as expected, in that we are getting the correct type for auto he= re: ``` #include #include template concept always_true =3D true; template concept always_false =3D false; template inline constexpr bool is_init_list_v =3D false; template inline constexpr bool is_init_list_v> =3D true; template concept not_init_list =3D !is_init_list_v>; template inline constexpr bool not_init_list1 =3D !is_init_list_v>; int main() { auto f =3D {1, 2, 3}; static_assert(!not_init_list); static_assert(!not_init_list1); } ``` Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67491 [Bug 67491] [meta-bug] concepts issues=