This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/53477] New: pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 May 2012 15:38:27 +0000
- Subject: [Bug libstdc++/53477] New: pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477
Bug #: 53477
Summary: pretty printer fails with: Python Exception <type
'exceptions.IndexError'> list index out of range
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: pluto@agmk.net
Created attachment 27490
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27490
testcase
$ x86_64-gnu-linux-g++ t.cpp -Wall -o t -g2 -gdwarf-4
$ cgdb ./t
in line 15 pretty printer fails with error.
7â int main()
8â {
9â icapSelection_[ /* frame */ 7 ][ /* word */ 3 ].insert( 5 );
10â icapSelection_[ /* frame */ 7 ][ /* word */ 3 ].insert( 1 );
11â for ( IcapSelection::const_iterator i = icapSelection_.begin(); i
!= icapSelection_.end(); ++i )
12â {
13â IcapSelection::key_type frame( i->first );
14â IcapSelection::mapped_type const& wordBitsetMap( i->second
);
15ââââââââââââââââ> for ( IcapSelection::mapped_type::const_iterator j =
wordBitsetMap.begin(); j != wordBitsetMap.end(); ++j )
16â {
17â IcapSelection::mapped_type::key_type word( j->first
);
18â IcapSelection::mapped_type::mapped_type const&
bits( j->second );
19â for (
IcapSelection::mapped_type::mapped_type::const_iterator k = bits.begin(); k !=
bits.end(); ++k )
20â {
21â unsigned bit( *k );
22â }
23â }
24â }
25â }
/home/users/pawels/dvm.git/t.cpp
Breakpoint 1, main () at t.cpp:9
(gdb) n
(gdb)
(gdb) p icapSelection_
$1 = std::map with 1 elements = {
[7] = std::map with 1 elements = {
[3] = std::set with 2 elements = {
[0] = 1,
[1] = 5
}
}
}
(gdb) n
(gdb)
(gdb)
(gdb) p wordBitsetMap
$2 = Python Exception <type 'exceptions.IndexError'> list index out of range:
std::map with 1 elements