Fix PR 94270 by not warning about artifical dummy arguments.
authorThomas König <tkoenig@gcc.gnu.org>
Tue, 14 Apr 2020 11:50:51 +0000 (13:50 +0200)
committerThomas König <tkoenig@gcc.gnu.org>
Tue, 14 Apr 2020 11:50:51 +0000 (13:50 +0200)
commit3b0e49a52e1884b501861c128b0a98dec50bdd2e
tree726bb3c94000a64c680bc61898ddd4bdb1684122
parenta1ff717f59d5198140fa6e1ad814f3d63ccf9925
Fix PR 94270 by not warning about artifical dummy arguments.

2020-04-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/94270
* interface.c (gfc_get_formal_from_actual_arglist): Always
set artificial attribute for symbols.
* trans-decl.c (generate_local_decl): Do not warn if the
symbol is artifical.

2020-04-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/94270
* gfortran.dg/warn_unused_dummy_argument_6.f90: New test.
gcc/fortran/interface.c
gcc/fortran/trans-decl.c
gcc/testsuite/gfortran.dg/warn_unused_dummy_argument_6.f90 [new file with mode: 0644]