From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9C9273858D1E; Sat, 4 Mar 2023 10:09:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C9273858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677924576; bh=rznlZPb+A/6ajtsu20yIaBicd+JjDvnr9JyrEOyv3iw=; h=From:To:Subject:Date:From; b=P6dSRmOoi5Uu6FLCF/hS+Tdd/nhrpqkq8bOeXKqnJyPTtI64hz1Ru/AwZmx8b+V/D eFNVxcBB1Orh2ifrBXW7xWg2MfH6RPpFPlkIRbNuDj2BF62VuO6DabM/YgEjZ5VXJk WhhsVeJfvyrY3jsb1o5p7lX/ZUi6qJt7piOfRgI8= From: "jengelh at inai dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109020] New: Lambdas have different DWARF signature than the function they are in Date: Sat, 04 Mar 2023 10:09:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 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: 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 cc 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=3D109020 Bug ID: 109020 Summary: Lambdas have different DWARF signature than the function they are in Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jengelh at inai dot de CC: rguenther at suse dot de Target Milestone: --- =3D=3D Input =3D=3D $ cat x.cpp #include static void ff(uint64_t b) { [&](){}(); } int main() { ff(0); } $ g++ x.cpp -g $ gdb a.out (gdb) b ff =3D=3D Observed =3D=3D 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 =3D=3D Additional info =3D=3D I am filing this for gcc since I believe this might have to do with DWARF generation rather than gdb being funky. Using built-in specs. COLLECT_GCC=3Dg++-13 COLLECT_LTO_WRAPPER=3D/usr/lib64/gcc/x86_64-suse-linux/13/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none:amdgcn-amdhsa OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-suse-linux Configured with: ../configure --prefix=3D/usr --infodir=3D/usr/share/info --mandir=3D/usr/share/man --libdir=3D/usr/lib64 --libexecdir=3D/usr/lib64 --enable-languages=3Dc,c++,objc,fortran,obj-c++,ada,go,d,jit,rust,m2 --enable-offload-targets=3Dnvptx-none,amdgcn-amdhsa, --enable-offload-defau= lted --without-cuda-driver --enable-host-shared --enable-checking=3Drelease --disable-werror --with-gxx-include-dir=3D/usr/include/c++/13 --with-libstdcxx-zoneinfo=3D/usr/share/zoneinfo --enable-ssp --disable-libs= sp --disable-libvtv --enable-cet=3Dauto --disable-libcc1 --enable-plugin --with-bugurl=3Dhttps://bugs.opensuse.org/ --with-pkgversion=3D'SUSE Linux' --with-slibdir=3D/lib64 --with-system-zlib --enable-libstdcxx-allocator=3Dn= ew --disable-libstdcxx-pch --enable-libphobos --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=3D-13 --without-system-libunwind --enable-multilib --with-arch-32=3Dx86-64 --with-tune=3Dgeneric --with-build-config=3Dbootstrap-lto-lean --enable-link-mutex --build=3Dx86_64-suse-linux --host=3Dx86_64-suse-linux Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.1 20230127 (experimental) [revision ca8fb0096713a8477614ef874f16ba5bf16c48bc] (SUSE Linux)=