[Bug fortran/91557] [7/8/9 Regression] Bogus warning about unused dummy argument _formal_*

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Sep 15 20:02:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91557

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sun Sep 15 20:01:44 2019
New Revision: 275734

URL: https://gcc.gnu.org/viewcvs?rev=275734&root=gcc&view=rev
Log:
2019-09-15  Thomas Koenig  <tkoenig@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  <tkoenig@gcc.gnu.org>

        Backport from trunk
        PR fortran/91557
        * gfortran.dg/warn_unused_dummy_argument_5.f90: New test.


Added:
   
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/warn_unused_dummy_argument_5.f90
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/trans-decl.c
    branches/gcc-8-branch/gcc/fortran/trans-types.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list