From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 70D57385E45A; Fri, 15 Mar 2024 19:57:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70D57385E45A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710532663; bh=axt7VuPAH1jFCGjenTL+QpRCm9Xme3khczWbXeXyuf8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YYSBexozYjT54IOzkQA7O5O0wIiNshuKzMRoJyRvts1Ze5JN6r1kjJCY7ByZuTIqt jtYUu+hsaK5U1e3LKm6QFGyDqih+3QJ4AtZKTKznl5kVqrZpi/Fcix2e5p5vujdEPE p6ka4m7Z/wgNZSqkvzAvCtja0lniD8VzwDJRjiUo= From: "anlauf 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 19:57:42 +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: anlauf 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 #8 from anlauf at gcc dot gnu.org --- (In reply to Mikael Morin from comment #7) > The changes are these: >=20 > PASS->FAIL: gfortran.dg/graphite/pr107865.f90 -O (test for excess erro= rs) > PASS->FAIL: gfortran.dg/pr101267.f90 -O (test for excess errors) > PASS->FAIL: gfortran.dg/pr112404.f90 -O (test for excess errors) > PASS->FAIL: gfortran.dg/pr78061.f -O (test for excess errors) > PASS->FAIL: gfortran.dg/pr79315.f90 -O (test for excess errors) > PASS->FAIL: gfortran.dg/pr98016.f90 -O (test for excess errors) > PASS->FAIL: gfortran.dg/vect/pr90681.f -O (test for excess errors) > PASS->FAIL: gfortran.dg/vect/pr97761.f90 -O (test for excess errors) > PASS->FAIL: gfortran.dg/vect/pr99746.f90 -O (test for excess errors) >=20 >=20 > FAIL: gfortran.dg/pr79315.f90 -O (test for excess errors) > Excess errors: > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/pr79315.f90:18:18: Error: > Variable 'ims' cannot appear in the expression at (1) Confirmed by Intel. > FAIL: gfortran.dg/pr101267.f90 -O (test for excess errors) > Excess errors: > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/pr101267.f90:5:19: Error: > Variable 'ime' cannot appear in the expression at (1) > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/pr101267.f90:5:24: Error: > Variable 'in' cannot appear in the expression at (1) Likewise. > FAIL: gfortran.dg/pr112404.f90 -O (test for excess errors) > Excess errors: > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/pr112404.f90:5:19: Error: > Variable 'ime' cannot appear in the expression at (1) > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/pr112404.f90:5:24: Error: > Variable 'in' cannot appear in the expression at (1) Likewise. > FAIL: gfortran.dg/pr78061.f -O (test for excess errors) > Excess errors: > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/pr78061.f:4:13: Error: > Variable 'ldc' cannot appear in the expression at (1) Likewise. > 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: Error: > Variable 'n' cannot appear in the expression at (1) This is wrong: the testcase looks valid to me. > 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) Hmmm, not diagnosed by Intel. > FAIL: gfortran.dg/vect/pr90681.f -O (test for excess errors) > Excess errors: > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/vect/pr90681.f:5:19: Err= or: > Variable 'norbs' cannot appear in the expression at (1) Detected by Intel. > FAIL: gfortran.dg/vect/pr97761.f90 -O (test for excess errors) > Excess errors: > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/vect/pr97761.f90:11:36: > Error: Variable 'inout' cannot appear in the expression at (1) Funny: type (quad_inductor), dimension(inout) :: ps Intel's message is also confusing in that case. > FAIL: gfortran.dg/vect/pr99746.f90 -O (test for excess errors) > Excess errors: > /home/mik/gcc/gccx/src/gcc/testsuite/gfortran.dg/vect/pr99746.f90:6:21: > Error: Variable 'lda' cannot appear in the expression at (1) Detected by Intel. We obviously have several invalid testcases in the testsuite... Probably just bad reductions.=