From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E777D3858C41; Tue, 5 Mar 2024 11:00:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E777D3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709636412; bh=tXDQJR7s3jE3VEF9G6cuVGVRinzZsYiWWEMfeb7OOcQ=; h=From:To:Subject:Date:From; b=M0MhT1xYBL/PEIqKTHBB94Wmgcqc5xbsL5CO32jqowa+6I9dC1aCOsz3vWchEtKLG QrDKXLqlpI2L5Yi8Ok3Peygzc3jdtbnWJhrCS6ErKOepT6Yc3TOkY28/Grmw9ePt5f AOPyfjSVBGJM2NWD8Vj3hnh6kR81LQSEXnlhad6o= From: "Bader at lrz dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/114235] New: Object undefined is specific procedure for generic overload in abstract type Date: Tue, 05 Mar 2024 11:00:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Bader at lrz dot de 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 attachments.created 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114235 Bug ID: 114235 Summary: Object undefined is specific procedure for generic overload in abstract type Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: Bader at lrz dot de Target Milestone: --- Created attachment 57613 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57613&action=3Dedit test case for overloaded addition in an abstract type The attached program fails with a segmentation fault. Compilation with=20 gfortran-13 -g -fbacktrace -Wall -Wextra abstract_overload_01_pos.f90=20 yields and executable the execution of which produces the following stack trace: Backtrace for this error: #0 0x7faaea5408c0 in ??? #1 0x7faaea53fa75 in ??? #2 0x7faae9b8f03f in ??? #3 0x7faaeae012a3 in __mod_r_MOD_add_r at /home/reinhold/a2832ba/Documents/fortran_tests/f03/object_oriented/generic_= tbps/abstract_overload_01_pos.f90:38 #4 0x7faaeae01dc3 in p_t at /home/reinhold/a2832ba/Documents/fortran_tests/f03/object_oriented/generic_= tbps/abstract_overload_01_pos.f90:57 #5 0x7faaeae021ca in main at /home/reinhold/a2832ba/Documents/fortran_tests/f03/object_oriented/generic_= tbps/abstract_overload_01_pos.f90:44 Segmentation fault (core dumped) Uncommenting the debug writeout in line 37 reveals that t2%vec is not alloc= ated contrary to the fact that the actual argument's component is indeed allocat= ed prior to invocation of the generic addition.=