This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/21674] basic_string vs debug_mode
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2005 04:22:28 -0000
- Subject: [Bug libstdc++/21674] basic_string vs debug_mode
- References: <20050520020817.21674.pcarlini@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bkoz at gcc dot gnu dot org 2005-05-24 04:22 -------
Dudes, just a quick pass at this.
a.out:
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h:643:
typename _Alloc::reference std::basic_string<_CharT, _Traits,
_Alloc>::operator[](typename _Alloc::size_type) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]: Assertion `__pos <
size()' failed.
Abort (core dumped)
I get this with 3.4 to mainline with -O1 or -O2.
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21674