From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5221 invoked by alias); 24 May 2012 15:39:00 -0000 Received: (qmail 5086 invoked by uid 22791); 24 May 2012 15:38:57 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CG,TW_GD X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 May 2012 15:38:44 +0000 From: "pluto at agmk dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/53477] New: pretty printer fails with: Python Exception list index out of range Date: Thu, 24 May 2012 17:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ 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-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 X-SW-Source: 2012-05/txt/msg02400.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53477 Bug #: 53477 Summary: pretty printer fails with: Python Exception 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=3D27490 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=E2=94=82 int main() 8=E2=94=82 { 9=E2=94=82 icapSelection_[ /* frame */ 7 ][ /* word */ 3 ].insert(= 5 ); 10=E2=94=82 icapSelection_[ /* frame */ 7 ][ /* word */ 3 ].insert(= 1 ); 11=E2=94=82 for ( IcapSelection::const_iterator i =3D icapSelection= _.begin(); i !=3D icapSelection_.end(); ++i ) 12=E2=94=82 { 13=E2=94=82 IcapSelection::key_type frame( i->first ); 14=E2=94=82 IcapSelection::mapped_type const& wordBitsetMap= ( i->second ); 15=E2=94=9C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80> f= or ( IcapSelection::mapped_type::const_iterator j =3D wordBitsetMap.begin(); j !=3D wordBitsetMap.end(); ++j ) 16=E2=94=82 { 17=E2=94=82 IcapSelection::mapped_type::key_type wo= rd( j->first ); 18=E2=94=82 IcapSelection::mapped_type::mapped_type= const& bits( j->second ); 19=E2=94=82 for ( IcapSelection::mapped_type::mapped_type::const_iterator k =3D bits.begin();= k !=3D bits.end(); ++k ) 20=E2=94=82 { 21=E2=94=82 unsigned bit( *k ); 22=E2=94=82 } 23=E2=94=82 } 24=E2=94=82 } 25=E2=94=82 } /home/users/pawels/dvm.git/t.cpp Breakpoint 1, main () at t.cpp:9 (gdb) n (gdb) (gdb) p icapSelection_ $1 =3D std::map with 1 elements =3D { [7] =3D std::map with 1 elements =3D { [3] =3D std::set with 2 elements =3D { [0] =3D 1, [1] =3D 5 } } } (gdb) n (gdb) (gdb) (gdb) p wordBitsetMap $2 =3D Python Exception list index out of ra= nge: std::map with 1 elements