From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BB0163858D28; Sun, 11 Jun 2023 16:51:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB0163858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686502305; bh=DwfYsWhoNNPVe3xLtTjzkmks6FbxfUcxYWJQjWVaADg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ngr40fJkzIeNdnBmb6TvNs9DpWZmT35DoeiTY1pjOFXCECxYLFYEwPFnfMXpEOmX7 oqWz+r8uZTWi3FbAuyNo2TcvbDsgsVupAxSOTYtvneZYrvWfnPUm2uQ919CBm0MPB3 GC8CWKD7LXMReUo6UrvphM3pgwYCXUapnY9gYxms= From: "johelegp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110211] Local lambda treated as non-local Date: Sun, 11 Jun 2023 16:51:45 +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: 14.0 X-Bugzilla-Keywords: c++-lambda, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: johelegp 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: cf_known_to_fail 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=3D110211 Johel Ernesto Guerrero Pe=C3=B1a changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |9.5.0 --- Comment #1 from Johel Ernesto Guerrero Pe=C3=B1a --- Simplified: - GCC 9.5 . - GCC trunk . ```C++ int main() { [](auto x) -> decltype([&](auto) {}(x)) {}(0); } ``` With this, MSVC fails. Apparently, rather than a hard error, it fails OR. That must be why it passed before.=