[Bug libstdc++/53477] pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range
pluto at agmk dot net
gcc-bugzilla@gcc.gnu.org
Mon Jan 6 11:36:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477
--- Comment #17 from Pawel Sikora <pluto at agmk dot net> ---
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<unsigned int, std::map<unsigned
int, std::set<unsigned int, std::__7::less<unsigned int>,
std::__7::allocator<unsigned int> >, std:
:__7::less<unsigned int>, std::__7::allocator<std::__7::pair<unsigned int
const, std::set<unsigned int, std::__7::less<unsigned int>,
std::__7::allocator<unsigned int> > > > >
, std::__7::less<unsigned int>, std::__7::allocator<std::__7::pair<unsigned int
const, std::map<unsigned int, std::set<unsigned int, std::__7::less<unsigned
int>, std::__7::al
locator<unsigned int> >, std::__7::less<unsigned int>,
std::__7::allocator<std::__7::pair<unsigned int const, std::set<unsigned int,
std::__7::less<unsigned int>, std::__7::al
locator<unsigned int> > > > > > > >::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
}
}
More information about the Gcc-bugs
mailing list