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