From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9000 invoked by alias); 6 Jan 2014 11:36:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 8958 invoked by uid 48); 6 Jan 2014 11:36:00 -0000 From: "pluto at agmk dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/53477] pretty printer fails with: Python Exception list index out of range Date: Mon, 06 Jan 2014 11:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.7.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pluto at agmk dot net X-Bugzilla-Status: UNCONFIRMED 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg00522.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477 --- Comment #17 from Pawel Sikora --- pure gcc 4.9.0 20140106 still fails: Breakpoint 2, main () at pr53477.cpp:15 (gdb) p wordBitsetMap $1 = std::map with 1 elementsTraceback (most recent call last): File "/home/pawels/gcc/4.9/share/gcc-4.9.0/python/libstdcxx/v6/printers.py", line 438, in children rep_type = find_type(self.val.type, '_Rep_type') File "/home/pawels/gcc/4.9/share/gcc-4.9.0/python/libstdcxx/v6/printers.py", line 54, in find_type raise ValueError, "Cannot find type %s::%s" % (str(orig), name) ValueError: Cannot find type const std::map, std::__7::allocator >, std: :__7::less, std::__7::allocator, std::__7::allocator > > > > , std::__7::less, std::__7::allocator, std::__7::al locator >, std::__7::less, std::__7::allocator, std::__7::al locator > > > > > > >::mapped_type::_Rep_type patch propses in comment #10 works for me: Breakpoint 2, main () at pr53477.cpp:15 (gdb) p wordBitsetMap $1 = std::map with 1 elements = { [3] = std::set with 2 elements = { [0] = 1, [1] = 5 } }