Thanks for the quick review. The change logs are

2017-09-29  Dominique d'Humieres  <domi...@lps.ens.fr>

        PR fortran/25071
        * interface.c (compare_actual_formal): Change warnings to errors
        when "Actual argument contains too few elements for dummy
        argument", unless -std=legacy is used.

2017-09-29  Dominique d'Humieres  <domi...@lps.ens.fr>

        PR fortran/25071
        * gfortran.dg/argument_checking_3.f90: Change warnings to errors.
        * gfortran.dg/argument_checking_4.f90: Likewise.
        * gfortran.dg/argument_checking_5.f90: Likewise.
        * gfortran.dg/argument_checking_6.f90: Likewise.
        * gfortran.dg/argument_checking_10.f90: Likewise.
        * gfortran.dg/argument_checking_13.f90: Likewise.
        * gfortran.dg/argument_checking_15.f90: Likewise.
        * gfortran.dg/argument_checking_18.f90: Likewise.
        * gfortran.dg/gomp/udr8.f90: Likewise.
        * gfortran.dg/warn_argument_mismatch_1.f90: Add -std=legacy to
        the dg-options.

Dominique

> Le 28 sept. 2017 à 14:57, Dominique d'Humières <domi...@lps.ens.fr> a écrit :
> 
> Hi all,
> 
> In the PR there was some consensus to turn the warnings into errors. 
> 
> This is what the patch does: the warnings are kept with -std=legacy, errors 
> are emitted otherwise.
> I am sure it may exist a better solution, but I did not find it. 
> 
> While regtesting I have found several regressions on top of 
> gfortran.dg/warn_argument_mismatch_1.f90
> 
> At this point, I had two options: use -std=legacy everywhere or replace the 
> dg-warning with dg-error. I have chosen the later except for 
> warn_argument_mismatch_1.f90.
> 
> Regtested on x86_64-apple-darwin16.
> 
> Comments are welcome and I’ll provide the change logs once the dust has 
> settled.
> 
> TIA
> 
> Dominique
> 

Reply via email to