[Bug fortran/60993] Trouble initializing double precision variable using boz literals
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Tue Apr 29 18:57:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60993
Harald Anlauf <anlauf at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gmx dot de
--- Comment #1 from Harald Anlauf <anlauf at gmx dot de> ---
The ICE is not nice.
However, in the meantime you can try something like the following
as a workaround:
real(8), parameter :: dinf = real (z'7ff8000000000000',8)
real(8), parameter :: dnan = real (z'7ff0000000000000',8)
write(*,*) dnan, dinf
write(*,'(z16.16,4x,z16.16)') dnan, dinf
end
which works for me.
More information about the Gcc-bugs
mailing list