[Bug fortran/95446] False positive for optional arguments of elemental procedure

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 1 14:40:34 GMT 2020


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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Mark Eggleston
<markeggleston@gcc.gnu.org>:

https://gcc.gnu.org/g:685d8dafb4a1cb29ee219ad7857614ff66a78022

commit r11-1761-g685d8dafb4a1cb29ee219ad7857614ff66a78022
Author: Mark Eggleston <markeggleston@gcc.gnu.org>
Date:   Mon Jun 1 14:56:00 2020 +0100

    Fortran  : False positive for optional arguments PR95446

    Check that there is non-optional argument of the same rank in the
    list of actual arguments.  If there is the warning is not required.

    2020-07-01  Steven G. Kargl  <kargl@gcc.gnu.org>

    gcc/fortran/

            PR fortran/95446
            * resolve.c (resolve_elemental_actual): Add code to check for
            non-optional argument of the same rank.  Revise warning message
            to refer to the Fortran 2018 standard.

    2020-07-01  Mark Eggleston  <markeggleston@gcc.gnu.org>

    gcc/testsuite/

            PR fortran/95446
            * gfortran.dg/elemental_optional_args_6.f90: Remove check
            for warnings that were erroneously output.
            * gfortran.dg/pr95446.f90: New test.


More information about the Gcc-bugs mailing list