From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C7283858D1E; Sat, 5 Mar 2022 16:08:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C7283858D1E From: "jengelh at inai dot de" To: gdb-prs@sourceware.org Subject: [Bug gdb/28946] New: Missing template paramater pack support Date: Sat, 05 Mar 2022 16:08:13 +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: 11.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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2022 16:08:13 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28946 Bug ID: 28946 Summary: Missing template paramater pack support Product: gdb Version: 11.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: jengelh at inai dot de Target Milestone: --- Input =3D=3D=3D=3D=3D ``` template void f(T&&...zzargs) {} int main() { f(0); } ``` g++-11 -Wall -ggdb3 x.cpp Observed output =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =C2=BB gdb a.out GNU gdb (GDB; openSUSE Tumbleweed) 11.1 ... (gdb) b main (gdb) r ... Breakpoint 1, main () at x.cpp:2 2 int main() { f(0); } Missing separate debuginfos, use: zypper install libgcc_s1-debuginfo-11.2.1+git1173-2.3.x86_64 libstdc++6-debuginfo-11.2.1+git1173-2.3.x86_64 (gdb) s f () at x.cpp:1 1 template void f(T&&...zzargs) {} (gdb) info args No arguments. (gdb) p zzargs No symbol "zzargs" in current context. Expected output =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (gdb) info args zzargs =3D {0} (gdb) p zzargs $1 =3D {0} or something of the sort. --=20 You are receiving this mail because: You are on the CC list for the bug.=