public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/27784]  New: Comparison of strings with char(0)
@ 2006-05-28 11:12 tkoenig at gcc dot gnu dot org
  2006-05-28 14:04 ` [Bug libfortran/27784] " tkoenig at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-05-28 11:12 UTC (permalink / raw)
  To: gcc-bugs

$ cat string_null_compare_1.f
      program main
      character*3 str1, str2
      call setval(str1, str2)
      if (str1 == str2) print *,'Should be unqual'
      end

      subroutine setval(str1, str2)
      character*3 str1, str2
      str1 = 'a' // CHAR(0) // 'a'
      str2 = 'a' // CHAR(0) // 'c'
      end
$ gfortran string_null_compare_1.f
$ ./a.out
 Should be unqual
$ g77 string_null_compare_1.f
$ ./a.out
$


-- 
           Summary: Comparison of strings with char(0)
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org
OtherBugsDependingO 19292
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27784


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-20  6:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-28 11:12 [Bug libfortran/27784] New: Comparison of strings with char(0) tkoenig at gcc dot gnu dot org
2006-05-28 14:04 ` [Bug libfortran/27784] " tkoenig at gcc dot gnu dot org
2006-05-28 15:49 ` fxcoudert at gcc dot gnu dot org
2006-05-28 16:05 ` tkoenig at gcc dot gnu dot org
2006-05-28 16:28 ` fxcoudert at gcc dot gnu dot org
2006-06-19 22:27 ` [Bug libfortran/27784] [4.1 only] " fxcoudert at gcc dot gnu dot org
2006-06-20  6:04 ` fxcoudert at gcc dot gnu dot org
2006-06-20  6:14 ` [Bug libfortran/27784] " fxcoudert at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).