From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E1378385E446; Fri, 15 Mar 2024 20:25:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1378385E446 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710534327; bh=cvQOe1CJF0ctNjVq5o6kWZXR3iz5ifoJPpUk44CVEoo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=exI4K4jaTlWWiqFcZbbLChgLMKXCRy6RaWIGErtHZS2DtFChhSQiEXu/R4qnX41Ux 1qzBE5NOxkJcNULNUACqSjEtOlAht2mGZnVsWcRismHYnuzJ+09VY5L9ovFJsncFb2 qajN2tcQyjmtdlfp3EpUVIs3SI/m6mLiLbxePrnQ= From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/111781] Fortran compiler complains about variable bound in array dummy argument Date: Fri, 15 Mar 2024 20:25:27 +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: 12.2.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mikael 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111781 --- Comment #9 from Mikael Morin --- (In reply to anlauf from comment #8) > (In reply to Mikael Morin from comment #7) > > FAIL: gfortran.dg/pr98016.f90 -O (test for excess errors) > > Excess errors: > > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/pr98016.f90:16:16: Err= or: > > Variable 'n' cannot appear in the expression at (1) >=20 > This is wrong: the testcase looks valid to me. >=20 Yes, to me as well. So the patch needs more work. :-( > > FAIL: gfortran.dg/graphite/pr107865.f90 -O (test for excess errors) > > Excess errors: > > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/graphite/pr107865.f90:= 7:18: > > Error: Variable 'n' cannot appear in the expression at (1) >=20 > Hmmm, not diagnosed by Intel. >=20 Strange that it is able to diagnose the other, but not this one. >=20 > We obviously have several invalid testcases in the testsuite... > Probably just bad reductions. Yes, variables named inout especially look like dubious (but valid) reducti= ons.=