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 fortran/43710] suspicious string comparisons



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


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