public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34262]  New: MVBITS does not work for arrays
@ 2007-11-28 12:21 phl at kth dot se
  2007-11-28 14:09 ` [Bug fortran/34262] " burnus at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: phl at kth dot se @ 2007-11-28 12:21 UTC (permalink / raw)
  To: gcc-bugs

hades [TEST] cat bug-mvbits.f90 
program main
  implicit none

  integer :: a( 1 ), b( 1 )
  integer :: x, y

  a = 1
  b = 0
  x = 1
  y = 0

  call mvbits (a, 0, 1, b, 1)
  call mvbits (x, 0, 1, y, 1)

  write (*, *) 'a: ', a
  write (*, *) 'x: ', x
  write (*, *)
  write (*, *) 'b: ', b
  write (*, *) 'y: ', y
  write (*, *)

  if ( all (b == y) ) then
     write (*, *) 'GOOD:  b == y'
  else
     write (*, *) 'BAD:  b /= y'
  end if

end program main

hades [TEST] ./a.out 
 a:            1
 x:            1

 b:            0
 y:            2

 BAD:  b /= y

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


It does not work for MacOS PowerPC either, same output. The version
I used ton my Mac was:

epsilon [TEST] gfortran --version      
GNU Fortran (GCC) 4.3.0 20071017 (experimental) [trunk revision 129405]
Copyright (C) 2007 Free Software Foundation, Inc.


-- 
           Summary: MVBITS does not work for arrays
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phl at kth dot se
 GCC build triplet: ?
  GCC host triplet: ?
GCC target triplet: ?


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


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

end of thread, other threads:[~2007-11-29 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-28 12:21 [Bug fortran/34262] New: MVBITS does not work for arrays phl at kth dot se
2007-11-28 14:09 ` [Bug fortran/34262] " burnus at gcc dot gnu dot org
2007-11-28 14:21 ` burnus at gcc dot gnu dot org
2007-11-29 14:57 ` burnus at gcc dot gnu dot org
2007-11-29 15:00 ` burnus 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).