This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31194] NaN transfer - internal compiler error: in gfc_conv_constant
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2007 09:34:57 -0000
- Subject: [Bug fortran/31194] NaN transfer - internal compiler error: in gfc_conv_constant
- References: <bug-31194-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2007-03-16 09:34 -------
I'm not anymore sure whether it is valid or not.
Related:
NaN = transfer(ishft(int(z'FFF80000',8),32),0.0_8)
this prints duly "NaN" with NAG f95, sunf95, ifort, g95 and gfortran.
The example of comment 0 prints NaN with g95 and sunf95, ifort prints "0.0"
(???) and NAG f95 rejects it with:
Error: foo.f90, line 1: INT of non-integer not permitted in an initialisation
expression
which somehow looks strange.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31194