This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/78221] [6/7 Regression] bogus warning: Non-zero imaginary part discarded in conversion [-Wconversion]
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Nov 2016 13:47:03 +0000
- Subject: [Bug fortran/78221] [6/7 Regression] bogus warning: Non-zero imaginary part discarded in conversion [-Wconversion]
- Auto-submitted: auto-generated
- References: <bug-78221-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78221
--- Comment #10 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Mon Nov 7 13:46:31 2016
New Revision: 241906
URL: https://gcc.gnu.org/viewcvs?rev=241906&root=gcc&view=rev
Log:
2016-11-07 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/78221
* arith.c (gfc_complex2real): Change gfc_warning_now to
gfc_warning.
2016-11-07 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/78221
* gfortran.dg/warn_conversion_9.f90: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/gfortran.dg/warn_conversion_9.f90
Modified:
branches/gcc-6-branch/gcc/fortran/ChangeLog
branches/gcc-6-branch/gcc/fortran/arith.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog