[Patch, Fortran] PR92896 [10 Regression] Fix - Prevent character conversion in array constructor
Mark Eggleston
mark.eggleston@codethink.co.uk
Tue Dec 17 17:28:00 GMT 2019
On 17/12/2019 17:06, Steve Kargl wrote:
> On Tue, Dec 17, 2019 at 03:41:41PM +0000, Mark Eggleston wrote:
>> gcc/fortran/ChangeLog
>>
>>    Mark Eggleston <mark.eggleston@codethink.com>
>>
>> Â Â Â PR fortran/92896
>> Â Â Â * array.c (walk_array_constructor): Replace call to cfg_convert_type
> s/cfg_convert_type/gfc_convert_type
>
>> Â Â Â with call to gfc_convert_type_warn with new argument set to true.
>> Â Â Â (check_element_type): Replace call to cfg_convert_type with call to
>> Â Â Â gfc_convert_type_warn with new argument set to true.
>> Â Â Â * gfortran.h: Add argument "array" to gfc_convert_type_warn default
>> Â Â Â value set to false.
> Do all current uses of gfc_convert_type_warn need to be updated
> to account for the new parameter? That is, doesn't this introduce
> a mismatch in the prototype and existing code?
I used a default value so all existing calls remain as they are and
default to false. So no mismatch.
regards Mark
--
https://www.codethink.co.uk/privacy.html
More information about the Fortran
mailing list