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/35849] "wrong" line shown in error message for parameter



------- Comment #4 from dfranke at gcc dot gnu dot org  2010-05-20 14:33 -------
A similar example:

$ cat conversion.f90
   REAL(8), PARAMETER :: h = HUGE(0.0_8)

   real*4 x
   data x / h /
end

$ gfortran-svn -Wall conversion.f90
conversion.f90:1.28:

   REAL(8), PARAMETER :: h = HUGE(0.0_8)
                            1
Error: Arithmetic overflow converting REAL(8) to REAL(4) at (1). This check can
be disabled with the option -fno-range-check


The overflowing conversion occurs in the DATA statement ^^


-- 


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


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