public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mscfd at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
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 [thread overview]
Message-ID: <bug-96131-4@http.gcc.gnu.org/bugzilla/> (raw)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96131
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 triggered
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 => 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 => null()
end function foo
end module mod
program procptr
use mod
implicit none
type(t) :: x
type(t), pointer :: y
x%get => foo
y => x%get()
end program procptr
next reply other threads:[~2020-07-09 8:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-09 8:57 mscfd at gmx dot net [this message]
2020-07-09 9:23 ` [Bug fortran/96131] " marxin at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-96131-4@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).