This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35849] "wrong" line shown in error message for parameter
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2010 14:33:37 -0000
- Subject: [Bug fortran/35849] "wrong" line shown in error message for parameter
- References: <bug-35849-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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