public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31964]  New: ishftc fails with certain thrid argument
@ 2007-05-16 22:42 trumsko at yahoo dot com
  2007-05-16 23:51 ` [Bug fortran/31964] " kargl at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: trumsko at yahoo dot com @ 2007-05-16 22:42 UTC (permalink / raw)
  To: gcc-bugs

If the third argument of ishftc equals BIT_SIZE of the first argument, the
result shall be the same as if the last argument was omitted. 

program main
  implicit none

  integer aint

  aint=1
  write(*,*) BIT_SIZE(aint)
  write(*,*) ishftc(aint,1)
  write(*,*) ishftc(aint,1,32)
  write(*,*) ishftc(aint,1,BIT_SIZE(aint))

end program main

Produces the following wrong output:
          32
           2
           2
           2


/tmp/forttest3 $ gfortran -v
Using built-in specs.
Target: i386-pc-linux-gnu
Configured with: /home/fxcoudert/gfortran_nightbuild/trunk/configure
--prefix=/home/fxcoudert/gfortran_nightbuild/irun-20070426
--enable-languages=c,fortran --disable-decimal-float --build=i386-pc-linux-gnu
--enable-checking=release
--with-gmp=/home/fxcoudert/gfortran_nightbuild/software
Thread model: posix
gcc version 4.3.0 20070426 (experimental)


-- 
           Summary: ishftc fails with certain thrid argument
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: trumsko at yahoo dot com
 GCC build triplet: i686-redhat-linux-gnu
  GCC host triplet: i686-redhat-linux-gnu
GCC target triplet: i686-redhat-linux-gnu


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


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

end of thread, other threads:[~2007-05-24  5:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-16 22:42 [Bug fortran/31964] New: ishftc fails with certain thrid argument trumsko at yahoo dot com
2007-05-16 23:51 ` [Bug fortran/31964] " kargl at gcc dot gnu dot org
2007-05-17  0:31 ` jvdelisle at gcc dot gnu dot org
2007-05-17  0:49 ` jvdelisle at gcc dot gnu dot org
2007-05-17  3:00 ` jvdelisle at gcc dot gnu dot org
2007-05-18  5:54 ` jvdelisle at gcc dot gnu dot org
2007-05-19  1:04 ` jvdelisle at gcc dot gnu dot org
2007-05-19  1:08 ` jvdelisle at gcc dot gnu dot org
2007-05-19  1:10 ` [Bug fortran/31964] [4.2, 4.1 only]ishftc " jvdelisle at gcc dot gnu dot org
2007-05-24  5:22 ` jvdelisle at gcc dot gnu dot org
2007-05-24  5:51 ` jvdelisle at gcc dot gnu dot org
2007-05-24  5:53 ` jvdelisle at gcc dot gnu dot org
2007-05-24  5:58 ` jvdelisle at gcc dot gnu dot org
2007-05-24  5:59 ` 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).