nkzxw / ontl

Automatically exported from code.google.com/p/ontl
0 stars 0 forks source link

assert fault in std::string::operator == #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
    std::string s1( "aaa" ), s2;
    if( s1 == s2 ) {
            return 1;
    }

call stack is
>   regression.exe!std::strncmp(const char * s1=0x00633fe8, const char 
* s2=0x00000000, unsigned int n=0)  Line 231 + 0x1a bytes   C++
    regression.exe!std::char_traits<char>::compare(const char * 
s1=0x00633fe8, const char * s2=0x00000000, unsigned int n=0)  Line 57 + 
0x2f bytes  C++
    regression.exe!
std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>::compare(const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
str=<empty>)  Line 976 + 0x4c bytes C++
    regression.exe!
std::operator==<char,std::char_traits<char>,std::allocator<char> >(const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
lhs="aaa", const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
rhs=<empty>)  Line 1146 + 0xc bytes C++
    regression.exe!test_ntl_string()  Line 42 + 0xd bytes   C++
    regression.exe!main(int argc=1, wchar_t * * argv=0x00631b98)  Line 
1056 + 0x10 bytes   C++

Original issue reported on code.google.com by andy.ya...@gmail.com on 7 Mar 2009 at 10:12

GoogleCodeExporter commented 9 years ago
Fixed in r512.

Original comment by icestudent@gmail.com on 7 Mar 2009 at 4:17