public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35223]  New: IBITS gives compiler error
@ 2008-02-16 23:50 phl at kth dot se
  2008-02-17  0:22 ` [Bug fortran/35223] " jvdelisle at verizon dot net
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: phl at kth dot se @ 2008-02-16 23:50 UTC (permalink / raw)
  To: gcc-bugs

hades [TEST] cat bug-ibits.f90
program main
  write (*, *) ibits (-1, 0, bit_size (0))
end program main


hades [TEST] gfortran bug-ibits.f90
bug-ibits.f90:2.22:

  write (*, *) ibits (-1, 0, bit_size (0))
                     1
Error: Result of IBITS overflows its kind at (1)


hades [TEST] gfortran --version
GNU Fortran (GCC) 4.2.1 (Ubuntu 4.2.1-5ubuntu4)
Copyright (C) 2007 Free Software Foundation, Inc.


Of course, compiling with my mac-version of gfortran
gives the same result:

epsilon [TEST] gfortran bug-ibits.f90 
bug-ibits.f90:2.22:

  write (*, *) ibits (-1, 0, bit_size (0))
                     1
Error: Result of IBITS overflows its kind at (1)
epsilon [TEST] gfortran --version
GNU Fortran (GCC) 4.3.0 20071017 (experimental) [trunk revision 129405]
Copyright (C) 2007 Free Software Foundation, Inc.

Compiling with g95 works fine though.

Sincerely
   PHL


-- 
           Summary: IBITS gives compiler error
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phl at kth dot se


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


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

end of thread, other threads:[~2008-02-24 19:46 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-16 23:50 [Bug fortran/35223] New: IBITS gives compiler error phl at kth dot se
2008-02-17  0:22 ` [Bug fortran/35223] " jvdelisle at verizon dot net
2008-02-17  1:09 ` kargl at gcc dot gnu dot org
2008-02-17  5:19 ` phl at kth dot se
2008-02-17  6:39 ` kargl at gcc dot gnu dot org
2008-02-17 11:56 ` phl at kth dot se
2008-02-17 13:10 ` dominiq at lps dot ens dot fr
2008-02-17 13:15 ` dominiq at lps dot ens dot fr
2008-02-17 18:10 ` sgk at troutmask dot apl dot washington dot edu
2008-02-17 19:11 ` jvdelisle at gcc dot gnu dot org
2008-02-17 19:56 ` dominiq at lps dot ens dot fr
2008-02-17 19:59 ` sgk at troutmask dot apl dot washington dot edu
2008-02-17 22:50 ` jvdelisle at gcc dot gnu dot org
2008-02-17 22:51 ` jvdelisle at gcc dot gnu dot org
2008-02-18  7:45 ` burnus at gcc dot gnu dot org
2008-02-24 19:19 ` jvdelisle at gcc dot gnu dot org
2008-02-24 19:46 ` jvdelisle 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).