From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E53E13858D34; Sat, 3 Jul 2021 20:48:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E53E13858D34 From: "sandra at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/101310] New: Bind(C): CFI_section seems confused by pointer arrays Date: Sat, 03 Jul 2021 20:48:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sandra at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sat, 03 Jul 2021 20:48:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101310 Bug ID: 101310 Summary: Bind(C): CFI_section seems confused by pointer arrays Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: sandra at gcc dot gnu.org Target Milestone: --- Many of the unit tests for CFI_section included in the WIP TS 29113 testsui= te are failing. https://gcc.gnu.org/pipermail/gcc-patches/2021-July/574115.html At least some of the problems seem to be related to handling pointer arrays where the lower bound may be nonzero; e.g. section-1p and section-2p fail, = but the corresponding non-pointer cases sharing the same C code pass. The set of tests that seem affected by this bug are: library/section-1p.f90 library/section-2p.f90 library/section-3.f90 library/section-3p.f90 and also interoperability/fc-out-descriptor-7.f90 which tries to pass the result of CFI_section back to Fortran via an intent(out) argument (the unit tests only manipulate it in C code).=