This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57022] [4.7/4.8/4.9 Regression] Inappropriate warning for use of TRANSFER with arrays
- From: "vladimir.fuka at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 21 Apr 2013 19:11:38 +0000
- Subject: [Bug fortran/57022] [4.7/4.8/4.9 Regression] Inappropriate warning for use of TRANSFER with arrays
- Auto-submitted: auto-generated
- References: <bug-57022-4 at http dot gcc dot gnu dot org/bugzilla/>
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