public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/vendors/redhat/heads/gcc-9-branch)] backport: re PR fortran/91783 (ICE in gfc_dep_resolver, at fortran/dependency.c:2111)
Date: Thu, 23 Jan 2020 09:42:00 -0000	[thread overview]
Message-ID: <20200123094214.123846.qmail@sourceware.org> (raw)

https://gcc.gnu.org/g:a78fb9e7141b8e4970209080d92a488dab964216

commit a78fb9e7141b8e4970209080d92a488dab964216
Author: Thomas Koenig <tkoenig@gcc.gnu.org>
Date:   Sat Nov 30 15:08:32 2019 +0000

    backport: re PR fortran/91783 (ICE in gfc_dep_resolver, at fortran/dependency.c:2111)
    
    Backport from trunk as an insurance policy.
    
    2019-11-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
    
        PR fortran/91783
        * gfortran.dg/dependency_56.f90: New test. Backport from trunk on
        the off-chance that somebody backports something that will break
        this test case.
    
    From-SVN: r278874

Diff:
---
 gcc/testsuite/ChangeLog                     |  8 ++++++++
 gcc/testsuite/gfortran.dg/dependency_56.f90 | 14 ++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 671ff28..8a392e0 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+
+2019-11-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+	PR fortran/91783
+	* gfortran.dg/dependency_56.f90: New test. Backport from trunk on
+	the off-chance that somebody backports something that will break
+	this test case.
+
 2019-11-29  Harald Anlauf  <anlauf@gmx.de>
 
 	Backport from mainline
diff --git a/gcc/testsuite/gfortran.dg/dependency_56.f90 b/gcc/testsuite/gfortran.dg/dependency_56.f90
new file mode 100644
index 0000000..97c0c81
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/dependency_56.f90
@@ -0,0 +1,14 @@
+! { dg-do compile }
+! PR 91783 - used to cause an ICE in dependency checking.
+! Test case by Gerhard Steinmetz.
+program p
+   class(*), allocatable :: a(:)
+   a = [1, 2, 3]
+   a = f(a)
+contains
+   function f(x) result(y)
+      class(*), allocatable, intent(in) :: x(:)
+      class(*), allocatable :: y(:)
+      y = x
+   end
+end


             reply	other threads:[~2020-01-23  9:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-23  9:42 Jakub Jelinek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-22 20:18 Jakub Jelinek

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=20200123094214.123846.qmail@sourceware.org \
    --to=jakub@gcc.gnu.org \
    --cc=gcc-cvs@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).