[patch, fortran] PR40290, disable warning on internal type conversion

Daniel Franke franke.daniel@gmail.com
Fri Dec 11 20:23:00 GMT 2009


Hi all,

the flag -Wconversion warns about REAL OP COMPLEX, when REAL is promoted to 
COMPLEX. This is an implementation detail and should not be exposed to the 
user. Hence, attached patch disables that warning.


2009-12-11  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/40290
	* expr.c (gfc_type_convert_binary): Added warn-on-conversion flag,
	passed on to gfc_convert_type_warn() instead of gfc_convert_type();
	enabled warnings on all callers but ...
	* arith.c (eval_intrinsic): Disabled warnings on implicit type
	conversion.
	* gfortran.h gfc_type_convert_binary): Adjusted prototype.


Regression tested on i686-pc-linux-gnu. Ok for trunk?

Cheers

	Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr40290.diff
Type: text/x-patch
Size: 4558 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20091211/145feba3/attachment.bin>


More information about the Fortran mailing list