From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 48E423854159; Thu, 4 May 2023 07:25:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48E423854159 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683185158; bh=3MG2u7N/aRbg6As49AArGrqzIifxFu22RawMOBy9AwI=; h=From:To:Subject:Date:From; b=IqwFdJtT8mr+jJigaIXQPYfZy5NQnonH+k0I45UTvhlhCNLGTH8IKQzw3qsXqnNEi 8ng/o6Ib11GJpW4OWWSm4z1evZaay4FeL558y/2uy6w/VAU1tMJaMVacIMCvOEviRv DyWEePJBVENzsdHc9W0kyqAhGC/YUS+JnaU3zDws= From: "falemagn at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug objc++/109728] New: lambda capture with initializer doesn't compile Date: Thu, 04 May 2023 07:25:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: objc++ X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: falemagn 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=3D109728 Bug ID: 109728 Summary: lambda capture with initializer doesn't compile Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: objc++ Assignee: unassigned at gcc dot gnu.org Reporter: falemagn at gmail dot com Target Milestone: --- This simple snippet int a; auto b =3D [c =3D a]{}; Produces the following error: error: 'c' was not declared in this scope=