From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2EB963898C42; Mon, 23 Mar 2020 11:38:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2EB963898C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584963531; bh=ZxqQZA31/3IFYlGlqzDT7lVVhFkl0dUxieC1hRWwzp4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tqfe7w8WNmJBgZXazPs7SQc7qGzqF8IRvgC1G44TONFy2DOGPUEwhqoWL5hHmQTkO SmLI+/Y2zMvPGCp9rdSbNeAPHktI2bnK09J9V/BHoj3cGjfHGRVNY8gZq5quJY1UOT 7uYtud4UuL9omwylZeKp8iDsOOAh/6f7FukZeSsE= From: "julius_huelsmann at freenet dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94252] Can't use a lambda in a requires expression Date: Mon, 23 Mar 2020 11:38:51 +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: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: julius_huelsmann at freenet dot de 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 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: Mon, 23 Mar 2020 11:38:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94252 --- Comment #1 from Julius H=C3=BClsmann --- This seems to apply to member functions aswell; the following assertion fai= ls aswell on gcc-trunk on [compilerExplorer](https://godbolt.org/z/NxgkH5) struct T { int f(int) noexcept; }; int main() { static_assert(requires(T o, int i) { o.f(i); //{ o.f(i) } noexcept->std::same_as; //< also fails. }); }=