[Converted from Gnats 1775] When printing an evaluation of a string with another, gdb core dumps. To simply reproduce, basically just make an main, with one string definition/assinment in it. I can print the string just fine. But if I did something like "print mystring == "Yes" it core dumps. std::string mystring = "Yes" And I type: print mystring == "Yes" gdb segfaults. Release: 6.2.1 Environment: Redhat Enterprise 3.0 g++ 3.2.3 How-To-Repeat: Create a main as follows int main() { string myString("Yes"); return 0; } In the above code, if you execute it through the gdb, if you do: print myString == "Yes" before it does the return, gdb core dumps.
This no longer crashes, now I get: (gdb) p x == "Yes" Structure has no component named operator==.