From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 49D433858D39; Fri, 29 Dec 2023 16:59:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 49D433858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703869187; bh=B1Pb8FGMn1Y+cfydMupx2dS0Wrk5hbv4lyA4Mzb/GFw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PYYBsjP2ZjB+RzFto6zEfukyWgMGhTuuOeUFnO5bEUE6iJu3T0xEXTdCuCHz+zJLC v5jq7ME8IjxE/00Y7tLlnfuYeCvJLcJXKUTofU7bGb48br7ulkQGxgti5k6n2OaWKR Y/iquahxubuWTFYc299gnMFcf+bHcske1TBARyMM= From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug c++/17632] No locals for lambdas in initialiser lists Date: Fri, 29 Dec 2023 16:59:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: ssbssa at sourceware dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D17632 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |MOVED Status|NEW |RESOLVED CC| |ssbssa at sourceware dot o= rg --- Comment #1 from Hannes Domani --- This was a debug info bug on gcc side that was fixed a while ago. If you compile this with a gcc >=3D 6.1, then the output looks like this: ``` Reading symbols from gdb-17632.exe...done. (gdb) b 10 Breakpoint 1 at 0x4a0778: file gdb-17632.cpp, line 10. (gdb) b 22 Breakpoint 2 at 0x401668: file gdb-17632.cpp, line 22. (gdb) r Starting program: C:\src\tests\gdb-17632.exe [New Thread 6852.0x1bd8] Breakpoint 1, Breaker::Breaker(int)::{lambda()#1}::operator()() const (__closure=3D0x22fde0) at gdb-17632.cpp:10 10 b++; (gdb) info locals b =3D 2 c =3D @0x22fe08: 2 (gdb) c Continuing. 3 Breakpoint 2, ::operator()(void) const (__closure=3D0x22fe40) at gdb-17632.cpp:22 22 b++; (gdb) info locals b =3D 4 c =3D @0x22fe2c: 4 ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=