https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91557
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Sun Sep 15 22:35:40 2019 New Revision: 275737 URL: https://gcc.gnu.org/viewcvs?rev=275737&root=gcc&view=rev Log: 2019-09-15 Thomas Koenig <tkoe...@gcc.gnu.org> Backport from trunk PR fortran/91557 * trans-decl.c (generate_local_decl): Do not warn if the symbol is artificial. * trans-types.c (get_formal_from_actual_arglist): Set artificial attribute on dummy arguments. 2019-09-15 Thomas Koenig <tkoe...@gcc.gnu.org> Backport from trunk PR fortran/91557 * gfortran.dg/warn_unused_dummy_argument_5.f90: New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/warn_unused_dummy_argument_5.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/trans-decl.c branches/gcc-7-branch/gcc/fortran/trans-types.c branches/gcc-7-branch/gcc/testsuite/ChangeLog