From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79D553871029; Wed, 11 Mar 2020 09:42:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79D553871029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1583919751; bh=PVRgo3mb/27vNxE82XgMzuunVCOU1l+WIyIHSv4LDas=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t6Hcf4EzQbacOtDzN8EXKArsvecb8zGCxgXtO6iy6ct2zrHk75M7objx/OHAQi7Xu j8k7RtP1QhVOXdAzuUtp29u6QuNVQEg15w8TwPfDAI/ijqLaXDsnuZAgHCP2Qiay8M KsbTvLwOpMLclc/iqMK0UiRqk13jaw6nhd8n9FrE= From: "bisqwit at iki dot fi" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94128] ICE on C++20 "requires requires" with lambda Date: Wed, 11 Mar 2020 09:42:31 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: bisqwit at iki dot fi 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: 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: Wed, 11 Mar 2020 09:42:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94128 --- Comment #2 from Joel Yliluoma --- Yes, it is valid. =E2=80=94 The auto parameter is valid since C++20. It is called a =E2=80=9C= placeholder type=E2=80=9D, which has existed since C++11. C++20 made it valid also in function paramet= ers. =E2=80=94 The =E2=80=9Crequires=E2=80=9D is a valid keyword since C++20. It= specifies constraints that the parameter must match. The double =E2=80=9Crequires=E2=80=9D manifests i= n certain situations. =E2=80=94 Until C++20, lambdas were not permitted in unevaluated contexts. = Changed in C++20.=