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/37930] gfortran error and ICE at automatic type conversion with transfer intrinsic



------- Comment #2 from kargl at gcc dot gnu dot org  2008-10-27 23:53 -------
An even shorter test case:

      program test
      implicit none
      integer i
      i = transfer(-1,1.0)
      end program test

Your transfer(-1,1.0) is a NaN for the 32-bit default REAL type.
I suspect that your program is nonconforming when you try to
assign the NaN to i.

While gfortran should never die with an ICE, I'd advise against 
using nonstandard code.


-- 


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


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