public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/redhat/heads/gcc-9-branch)] backport: re PR fortran/91783 (ICE in gfc_dep_resolver, at fortran/dependency.c:2111)
@ 2020-01-23  9:42 Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2020-01-23  9:42 UTC (permalink / raw)
  To: gcc-cvs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/vendors/redhat/heads/gcc-9-branch)] backport: re PR fortran/91783 (ICE in gfc_dep_resolver, at fortran/dependency.c:2111)
@ 2020-01-22 20:18 Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2020-01-22 20:18 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6b4b0e96e836f6684a1c090d6bbe67f5da563e58

commit 6b4b0e96e836f6684a1c090d6bbe67f5da563e58
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.

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 a06e5de..d8e2b78 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-23  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-23  9:42 [gcc(refs/vendors/redhat/heads/gcc-9-branch)] backport: re PR fortran/91783 (ICE in gfc_dep_resolver, at fortran/dependency.c:2111) Jakub Jelinek
  -- strict thread matches above, loose matches on Subject: below --
2020-01-22 20:18 Jakub Jelinek

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).