aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/arith.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2016-10-30 17:48:27 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2016-10-30 17:48:27 +0000
commit396e56d2da7935f96f4ca133c359668cc6c98eaf (patch)
tree9f87be3a5ce110418b89e042a1508d940257fa15 /gcc/fortran/arith.c
parente9d33505a09b5503ff8816ae970c47ce30684447 (diff)
downloadgcc-396e56d2da7935f96f4ca133c359668cc6c98eaf.zip
gcc-396e56d2da7935f96f4ca133c359668cc6c98eaf.tar.gz
gcc-396e56d2da7935f96f4ca133c359668cc6c98eaf.tar.bz2
re PR fortran/67219 (Incorrect conversion warning)
2016-10-30 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/67219 * arith.c (gfc_int2real): Change gfc_warning_now to gfc_warning. * primary.c (match_complex_constant): If there is no comma, throw away any warning which might have been issued by gfc_int2real. 2016-10-30 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/67219 * gfortran.dg/pr67219.f90: New test. From-SVN: r241689
Diffstat (limited to 'gcc/fortran/arith.c')
-rw-r--r--gcc/fortran/arith.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/fortran/arith.c b/gcc/fortran/arith.c
index 8af7540..d566faa 100644
--- a/gcc/fortran/arith.c
+++ b/gcc/fortran/arith.c
@@ -2072,11 +2072,11 @@ gfc_int2real (gfc_expr *src, int kind)
if (warn_conversion
&& wprecision_int_real (src->value.integer, result->value.real))
- gfc_warning_now (OPT_Wconversion, "Change of value in conversion "
- "from %qs to %qs at %L",
- gfc_typename (&src->ts),
- gfc_typename (&result->ts),
- &src->where);
+ gfc_warning (OPT_Wconversion, "Change of value in conversion "
+ "from %qs to %qs at %L",
+ gfc_typename (&src->ts),
+ gfc_typename (&result->ts),
+ &src->where);
return result;
}