[Patch, Fortran] PR 38487 Spurious warning: "Actual argument might interfere..."

Tobias Burnus burnus@net-b.de
Mon Dec 15 15:24:00 GMT 2008


Hello Mikael,

Mikael Morin wrote:
> this disables the warning I added for PR 35681 in the pointer case as
> there may be too many false positive.
>
> No regression on x86_64-unknown-linux-gnu. Ok for trunk?
>   
I wonder whether one might get for e->expr_type != EXPR_VARIABLE a
spurious warning, but I don't think so.

Thus: OK and thanks for the patch.

Tobias

> 2008-12-15  Mikael Morin  <mikael.morin@tele2.fr>
>
> 	PR fortran/38487
> 	* gfortran.dg/elemental_dependency_2.f90: New test.
>
> 2008-12-15  Mikael Morin  <mikael.morin@tele2.fr>
>
> 	PR fortran/38487
> 	* dependency.c (gfc_is_data_pointer): New function.
> 	(gfc_check_argument_var_dependency): Disable the warning
> 	in the pointer case.
> 	(gfc_check_dependency): Use gfc_is_data_pointer.
>   



More information about the Gcc-patches mailing list