From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 01AE1384DB4B; Thu, 15 Feb 2024 13:58:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 01AE1384DB4B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708005530; bh=inYFK7v2YP9pzY6RXt9NTIsXYPKZwfyRxmesMEnBWFc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rvKGGeyY+5KXqHOaQWMzHm3UlmCvwjTSarbEtnyPg3XEZqmuyxGcJZRshXb/G2Doc fq0cFUy2E+5KjPwr66lLxyK5eZCUhIXDomK1hlC2J467GdmslBFHN/5kPL7aivWCUt dpKYvJM0swWUscTVuoNxJfOyMAYf9gz/QFHiQ0JE= From: "gieseanw+gcc at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99546] Weird return value of C++20 requires expression Date: Thu, 15 Feb 2024 13:58: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: 11.0 X-Bugzilla-Keywords: c++-lambda, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gieseanw+gcc at gmail dot com 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: cc 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=3D99546 Andrew Giese changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gieseanw+gcc at gmail dot = com --- Comment #7 from Andrew Giese --- This bug in the OP appears to have been fixed as early as gcc 11.1. For reference, I'm referring to the following code: int main() { constexpr auto b =3D requires { []{}; }; static_assert(b); static_assert(!b); } https://godbolt.org/z/WzzGMxcz6 Note that the code listed in Jonathan's comment above still fails in 14.0.1 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99546#c6)=