This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/45999] New: runtime error in std::vector python pretty printer.
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 Oct 2010 08:54:08 +0000
- Subject: [Bug libstdc++/45999] New: runtime error in std::vector python pretty printer.
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45999
Summary: runtime error in std::vector python pretty printer.
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: pluto@agmk.net
Host: x86_64-gnu-linux
Target: x86_64-gnu-linux
Build: x86_64-gnu-linux
Created attachment 22026
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22026
reduced testcase.
Breakpoint 1, main () at t.cpp:156
156 bidir_graph_t g ( 5 );
(gdb) n
157 g.add_edge ( bdir_edge_t ( 3, 2 ) );
(gdb) p g
$1 = {
<au::graph::BidirectionalGraph<int>> = {<No data fields>},
members of au::graph::adjacency_matrix<int, au::graph::BidirectionalGraph>:
static npos = <optimized out>,
size_ = 5,
verticles_ = std::vector of length 0, capacity 5,
adjacency_matrix_ = std::vector of length 5, capacity 5 = {
Traceback (most recent call last):
File
"/local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/share/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 186, in to_string
% (self.typename, int (finish - start), int (end - start)))
RuntimeError: Argument to arithmetic operation not a number or boolean.
Traceback (most recent call last):
File
"/local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/share/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 169, in next
elt = self.item.dereference()
RuntimeError: Attempt to take contents of a non-pointer value.
(...)