From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 920DD386189F; Wed, 1 Jul 2020 14:40:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 920DD386189F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593614434; bh=RJ/mftIuFv08i6Q52rUhvTq8cNqPNpa7hamfTfv84mM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ow4E2sX/8+XMlI0lVKDBTzxcebyaXj93qFBCo1xqpj/HGWyPg/1jK+iThrc++iryk SNJ3q1SXMEW6z2YkoXLLE4mNEsC3cA/zJWy8jiecDPVwtmg+eSZV4v+j/IdYv/hBcI QcBkfgIH9FtmnHIx1tMGQz86M6Nf8yZgMNRCvl5A= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95446] False positive for optional arguments of elemental procedure Date: Wed, 01 Jul 2020 14:40:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2020 14:40:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95446 --- Comment #3 from CVS Commits --- The master branch has been updated by Mark Eggleston : https://gcc.gnu.org/g:685d8dafb4a1cb29ee219ad7857614ff66a78022 commit r11-1761-g685d8dafb4a1cb29ee219ad7857614ff66a78022 Author: Mark Eggleston 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 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 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.=