This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
C++ Bug with strings
- To: gcc-bugs <gcc-bugs at gcc dot gnu dot org>
- Subject: C++ Bug with strings
- From: Thomas Kunert <kunert at physik dot tu-dresden dot de>
- Date: Fri, 25 Aug 2000 08:28:53 +0200
Hi,
I expect this to print 0 instead of 1.
[kunert@ptpp03 /work]$ cat test2.cc
#include <string>
int main()
{
return string("blah!") == "";
}
[kunert@ptpp03 /work]$ g++ test2.cc
[kunert@ptpp03 /work]$ ./a.out || echo Bug!
Bug!
[kunert@ptpp03 /work]$ g++ -v
Reading specs from /opt/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 20000824
(experimental)
Regards,
Thomas