From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4223 invoked by alias); 6 May 2014 08:36:32 -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 4168 invoked by uid 48); 6 May 2014 08:36:29 -0000 From: "jiyouguo at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/53477] pretty printer fails with: Python Exception list index out of range Date: Tue, 06 May 2014 08: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: jiyouguo at gmail dot com 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: cc 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-05/txt/msg00332.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477 JiYouguo changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jiyouguo at gmail dot com --- Comment #18 from JiYouguo --- (In reply to Pawel Sikora from comment #17) Would you mind telling how to patch a bug? I just can't find the file simple.cc. > 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 int, std::set, > std::__7::allocator >, std: > :__7::less, std::__7::allocator const, std::set, > std::__7::allocator > > > > > , std::__7::less, std::__7::allocator int const, std::map std::__7::less, std::__7::al > locator >, std::__7::less, > std::__7::allocator int, std::__7::less, 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 > } > }