From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EAB95385040E; Fri, 19 Mar 2021 09:35:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAB95385040E From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated Date: Fri, 19 Mar 2021 09:35:21 +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: pault at gcc dot gnu.org 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: Fri, 19 Mar 2021 09:35:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99602 --- Comment #28 from Paul Thomas --- (In reply to J=C3=BCrgen Reuter from comment #27) > Created attachment 50432 [details] > reproducer, down to 6800 lines Hi Juergen, Stop! Yesterday's final is just fine. The problem is connected with the log= ic selecting the runtime error. The code for line 483 ends with D.5856 =3D model->_vptr->get_par_data_ptr (&model.110, D.5855); if ((character(kind=3D1)[0:][1:1] * restrict) D.5855->chars.data !=3D 0B) { __builtin_free ((void *) D.5855->chars.data); (character(kind=3D1)[0:][1:1] * restrict) D.5855->chars.data =3D 0B; } if ((integer(kind=3D8)) (D.5856._data =3D=3D 0B)) { _gfortran_runtime_error_at (&"At line 483 of file models.f90"[1]{lb: 1 sz: 1}, &"Proc-pointer actual argument \'model\' is not associated"[1]{lb: 1 sz: 1}); } field_data_set (&class.109, 0B, 0B, 0B, 0B, 0B, 0B, 0= B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, &D.5856, 0B, 0B, 0B); } The _data field of D.5856 is the result of the call to 'get_par_data_ptr' n= ot the procedure pointer itself. The result is: class(modelpar_data_t), pointer :: ptr and the formal argument is: class(modelpar_data_t), intent(in), pointer, optional :: mass_data So the call is perfectly proper. The trouble is that the attributes of the proc_pointer result are not being used. I am about to start a gdb session :-) Paul=