[Bug libstdc++/31061] New: error with '-D_GLIBCXX_DEBUG'

2007-03-06 Thread ulf at linuxmail dot org
Compiled this program:
http://www.justsoftwaresolutions.co.uk/cplusplus/vector_bowling.html
without -D_GLIBCXX_DEBUG the program works ok, but with -D_GLIBCXX_DEBUG I get 
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/vector:199:
error: attempt to subscript container with out-of-bounds index 20, but 
container only holds 20 elements.

gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)


-- 
   Summary: error with '-D_GLIBCXX_DEBUG'
   Product: gcc
   Version: 4.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ulf at linuxmail dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31061



[Bug libstdc++/31061] error with '-D_GLIBCXX_DEBUG'

2007-03-08 Thread ulf at linuxmail dot org


--- Comment #4 from ulf at linuxmail dot org  2007-03-08 21:33 ---
Yes, I guess you're right. Sorry for the noice, I should have checked it more
closely before posting.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31061