This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/57022] [4.7/4.8/4.9 Regression] Inappropriate warning for use of TRANSFER with arrays


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

Vladimir Fuka <vladimir.fuka at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vladimir.fuka at gmail dot
                   |                            |com

--- Comment #5 from Vladimir Fuka <vladimir.fuka at gmail dot com> 2013-04-21 19:11:38 UTC ---
Is this the same bug?:

    elemental function BigEnd32(x) result(res)
      use iso_fortran_env
      real(real32) :: res
      real(real32),intent(in)::x
      integer(int8),dimension(4):: bytes

      bytes = transfer(x,bytes,4)
      res = transfer(bytes(4:1:-1),res)

    end function BigEnd32

Warning: Intrinsic TRANSFER at (1) has partly undefined result: source size 1 <
result size 4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]