From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1DB4F383FBB5; Wed, 26 Oct 2022 15:25:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1DB4F383FBB5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666797915; bh=exwkA/GVQgQvsNUbLwmCnPWkE6z/EoOfIaIbx3JN9Uo=; h=From:To:Subject:Date:From; b=StCzGYVXtTkDQaBFBOeTi4BAzl3geK3RuuDrZDaIx4mB5bg+Fh7vXVsB4nFQAO5Xq CMq5KawWHZSlzYxWNebLKMJvWY9+pWuUvXwpUD/DBRE/IWWL5BttcNZYZLMKzGH5Sg EpK5HSOeKAW/ApqPoF4z5fI2DUuniW4SzPILqvnE= From: "jwjagersma at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107417] New: g++ fails to recognize parameter pack in requires-expression Date: Wed, 26 Oct 2022 15:25:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jwjagersma at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D107417 Bug ID: 107417 Summary: g++ fails to recognize parameter pack in requires-expression Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jwjagersma at gmail dot com Target Milestone: --- Given the following code: $ cat fold.cpp template requires (requires (T x) { x; } and ...) auto func(T...) { } g++ seems to forget that T is a parameter pack: $ g++ -std=3Dc++20 fold.cpp fold.cpp:2:11: error: operand of fold expression has no unexpanded parame= ter packs 2 | requires (requires (T x) { x; } and ...) | ^~~~~~~~~~~~~~~~~~~~~ This issue is present on both 12.2 and latest 13.0. Clang and msvc do acce= pt it.=