This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/21674] basic_string vs debug_mode


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]