From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 054C83861962; Thu, 9 Jul 2020 08:57:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 054C83861962 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594285062; bh=Co6WWJUlcljvEbR4mwvVvhXt7EEcQkZsJ8flWUhY9P8=; h=From:To:Subject:Date:From; b=es6zhYOHQr9z9ModKPyYiTw305ArmSQcA4CooiByrNI4eSwQvltkxEQRJkRjGVjqP eNB1Ima8qVf7wSfVz3wNvcsrDyWosaENWFeR+qbX3QyHeQJOaNmKKFtiJn0MKAFANP ojxtlZFTJF8AA15EhJrioxGIxsj5h1UNdbNi79zk= From: "mscfd at gmx dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96131] New: ICE in fold_convert_loc, at fold-const.c:2435 Date: Thu, 09 Jul 2020 08:57:41 +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: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mscfd at gmx dot net 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: Thu, 09 Jul 2020 08:57:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96131 Bug ID: 96131 Summary: ICE in fold_convert_loc, at fold-const.c:2435 Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mscfd at gmx dot net Target Milestone: --- The code below fails with an ICE in fold_convert_loc, at fold-const.c:2435. There is another recent bug 94730 with an ICE at this location, but trigger= ed with C code. Is this maybe related? Also fails with ICE with gfortran 8.2.1 and 9.1.1. > gfortran-10 procptr.f90 module mod implicit none public type :: t procedure(get_ifc), pointer, nopass :: get =3D> null() end type t abstract interface function get_ifc() result(x) import t type(t), pointer :: x end function get_ifc end interface contains function foo() result(x) type(t), pointer :: x x =3D> null() end function foo end module mod program procptr use mod implicit none type(t) :: x type(t), pointer :: y x%get =3D> foo y =3D> x%get() end program procptr=