From: Harald Anlauf <anlauf@gmx.de>
To: fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: [PR fortran/60126] Internal compiler error with code using pointer reshaping (gfortran 4.8.2)
Date: Wed, 24 Feb 2016 19:42:00 -0000 [thread overview]
Message-ID: <56CE07AA.8090808@gmx.de> (raw)
Hello,
the above bug appears to have been fixed over 2.5 years ago.
It does not trigger with 4.9, 5 and 6 trunk, but does with 4.8.0 and
before.
I recommend to close the bug, while adding a testcase to the trunk's
testsuite. See e.g. the attached example.
Harald
2016-02-24 Harald Anlauf <anlauf@gmx.de>
* gfortran.dg/pr60126.f90: New test.
Index: gcc/testsuite/gfortran.dg/pr60126.f90
===================================================================
--- gcc/testsuite/gfortran.dg/pr60126.f90 (revision 0)
+++ gcc/testsuite/gfortran.dg/pr60126.f90 (revision 0)
@@ -0,0 +1,18 @@
+! { dg-do compile }
+! PR fortran/60126 - ICE on pointer rank remapping
+! Based on testcase by Michel Valin <mfvalin at gmail dot com>
+
+subroutine simple_bug_demo
+ implicit none
+ interface
+ function offset_ptr_R4(nelements) result (dest)
+ implicit none
+ real*4, pointer, dimension(:) :: dest
+ integer, intent(IN) :: nelements
+ end function offset_ptr_R4
+ end interface
+
+ real, dimension(:,:), pointer :: R2D
+
+ R2D(-2:2,-3:3) => offset_ptr_R4(100)
+end
next reply other threads:[~2016-02-24 19:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 19:42 Harald Anlauf [this message]
2016-02-24 20:45 ` Harald Anlauf
2016-02-24 21:24 Dominique d'Humières
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=56CE07AA.8090808@gmx.de \
--to=anlauf@gmx.de \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@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).