public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/59604] New: Constant comparisons with -fno-range-check and int(z'...')
@ 2013-12-26 17:05 tkoenig at gcc dot gnu.org
  2013-12-27 15:56 ` [Bug fortran/59604] " tkoenig at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2013-12-26 17:05 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59604
           Summary: Constant comparisons with -fno-range-check and
                    int(z'...')
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org

Trying out a fix for PR 58003, I found that the following program was of the
opinion that -1 does not equal -1:

ig25@linux-fd1f:~/Krempel/NoRange> cat bar.f90
program test
  use iso_fortran_env
  implicit none

  integer, parameter :: wt = int32

  print *, int(z'FFFFFFFF',wt)
  print *, int(z'FFFFFFFF',wt) /= -1

end program test
ig25@linux-fd1f:~/Krempel/NoRange> gfortran -fno-range-check bar.f90 
ig25@linux-fd1f:~/Krempel/NoRange> ./a.out
          -1
 T


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

end of thread, other threads:[~2014-04-27 17:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-26 17:05 [Bug fortran/59604] New: Constant comparisons with -fno-range-check and int(z'...') tkoenig at gcc dot gnu.org
2013-12-27 15:56 ` [Bug fortran/59604] " tkoenig at gcc dot gnu.org
2013-12-27 18:10 ` kargl at gcc dot gnu.org
2013-12-27 18:17 ` sgk at troutmask dot apl.washington.edu
2013-12-27 19:53 ` tkoenig at gcc dot gnu.org
2013-12-28 11:20 ` tkoenig at gcc dot gnu.org
2013-12-29 12:44 ` dominiq at lps dot ens.fr
2014-04-27 10:49 ` tkoenig at gcc dot gnu.org
2014-04-27 17:06 ` tkoenig at gcc dot gnu.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).