From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8BFA83858C30; Tue, 7 Mar 2023 15:47:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8BFA83858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678204030; bh=t37ubdPV8s3TKJtvIHaz7Jgciwh1KgRfIp8B7wcIASQ=; h=From:To:Subject:Date:From; b=jl3fRYftE/uTWzkTSv2b7u2qg1f8Oe3yYcRQfS8PLpJr0tz1Et/lGFV6fegMa/XZR GEKb7wgGXjvildaPjHFlxkeIW5Hd3WMRMRxwhsahn6byCFFnP+ewYG9RCIv4sKJ51w VvS4ghwc2dxt1rG7EtICbelZ9Tg1pHBcCnO6ALZE= From: "jengelh at inai dot de" To: gdb-prs@sourceware.org Subject: [Bug gdb/30209] New: Inconsistency between lambdas' signatures and that of the function they are in Date: Tue, 07 Mar 2023 15:47:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jengelh at inai dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30209 Bug ID: 30209 Summary: Inconsistency between lambdas' signatures and that of the function they are in Product: gdb Version: 12.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: jengelh at inai dot de Target Milestone: --- Moved from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109020 =3D=3D Input =3D=3D $ cat x.cpp #include static void ff(uint64_t b) { [&](){}(); } int main() { ff(0); } $ nm -C a.out | grep ff 0000000000401121 t ff(unsigned long) 0000000000401116 t ff(unsigned long)::{lambda()#1}::operator()() const $ g++ x.cpp -g $ gdb a.out (gdb) b ff =3D=3D Observed =3D=3D Tab completion yields: ff(uint64_t) ff(unsigned long)::{lambda()#1}::operator()() const =3D=3D Expectation =3D=3D ff(unsigned long) ff(unsigned long)::{lambda()#1}::operator()() const [or] ff(uint64_t) ff(uint64_t)::{lambda()#1}::operator()() const --=20 You are receiving this mail because: You are on the CC list for the bug.=