This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43710] suspicious string comparisons
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Apr 2010 01:38:50 -0000
- Subject: [Bug fortran/43710] suspicious string comparisons
- References: <bug-43710-16888@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2010-04-10 01:38 -------
I think the intent of these test is not to compare the strings but to see if
the pointers are pointing to the exact same string. You could have a situation
where the content of the strings is identical but they are really two different
strings (ie two different storage locations)
The question then is one of what is intended in these code hunks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43710