From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E857A3858C66; Mon, 6 Mar 2023 15:00:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E857A3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678114847; bh=4wdkNQ5sTbL0col/uQlk61ZnCeI9LYg9/psysXA8us8=; h=From:To:Subject:Date:From; b=DD7Rdg+pUJfN3QazSb+sL/Y+kbTO+emTaLUI/5NBG56f92cefxg2w+NosPSHWLAUO Yrf/TBcZFJrFbjak+Qz0LhHNM9SGaYGmNl3dkeL/Blhk3tz9rfxC0eLTAVUU4awRMI +B0GKzReoc/ejlHGFvVNOuvZUs9ZtYl8Nfgk9gr8= From: "blarsen at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/30202] New: GDB is incorrectly partially completing a command Date: Mon, 06 Mar 2023 15:00:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blarsen at redhat dot com X-Bugzilla-Status: NEW 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=3D30202 Bug ID: 30202 Summary: GDB is incorrectly partially completing a command Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: c++ Assignee: unassigned at sourceware dot org Reporter: blarsen at redhat dot com Target Milestone: --- Running the following code: typedef int my_int; template class my_type{ public: T member; my_type(T t): member(t) {}; }; int main(){ my_type mt(0); return mt.member; } and trying to complete "print my_type::my" the line gets replaced by (gdb) print my_type::_type And if it can keep going indefinitely: (gdb) print my_type::my_type::my_type::my_type::_type --=20 You are receiving this mail because: You are on the CC list for the bug.=