From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E33473857829; Thu, 18 Mar 2021 07:26:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E33473857829 From: "paul.richard.thomas at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated Date: Thu, 18 Mar 2021 07:26:25 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paul.richard.thomas at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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: Thu, 18 Mar 2021 07:26:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99602 --- Comment #17 from paul.richard.thomas at gmail dot com --- Good morning all, I have attached the revised patch and an additional testcase. I had totally forgotten about the class pointer gotcha. OK for master? Paul Fortran: Fix runtime errors for class actual arguments [PR99602]. 2021-03-18 Paul Thomas gcc/fortran PR fortran/99602 * trans-array.c (gfc_conv_procedure_call): For class formal arguments, use the _data field attributes for runtime errors. For class expressions use the class_pointer attribute. gcc/testsuite/ PR fortran/99602 * gfortran.dg/pr99602.f90: New test. * gfortran.dg/pr99602a.f90: New test. On Wed, 17 Mar 2021 at 17:57, anlauf at gcc dot gnu.org < gcc-bugzilla@gcc.gnu.org> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99602 > > --- Comment #16 from anlauf at gcc dot gnu.org --- > (In reply to J=C3=BCrgen Reuter from comment #15) > > > LGTM. It's by Paul. He simply needs to get the testcase's dg-foo > right... > > > ;-) > > > > Now I'm confused. So you consider the fix ok? Will it then be committed? > > The fix was basically OKed on the fortran ML by Tobias, he only wondered > if there should be a runtime test. One could simply change the line > > ! { dg-do compile } > > to > > ! { dg-do run } > > before committing. Still confused? > > -- > You are receiving this mail because: > You are the assignee for the bug. > You are on the CC list for the bug.=