]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/71860 ([OOP] ICE on pointing to null(mold), verify_gimple failed)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 9 Feb 2019 20:09:56 +0000 (20:09 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 9 Feb 2019 20:09:56 +0000 (20:09 +0000)
2019-02-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/71860
    Backport from trunk
    * gfortran.dg/null_10.f90: New test.

From-SVN: r268731

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/null_10.f90 [new file with mode: 0644]

index 4e95b24b4659c147c673a210522e3499a2698a7d..83b35d3e895d0eee4fbf825701aee4582b2b2f27 100644 (file)
@@ -1,3 +1,9 @@
+2019-02-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/71860
+       Backport from trunk
+       * gfortran.dg/null_10.f90: New test.
+
 2019-02-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
 
        2019-02-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
diff --git a/gcc/testsuite/gfortran.dg/null_10.f90 b/gcc/testsuite/gfortran.dg/null_10.f90
new file mode 100644 (file)
index 0000000..ec1ac0d
--- /dev/null
@@ -0,0 +1,7 @@
+! { dg-do compile }
+! PR 71860 - this used to ICE
+! Original test case by Gerhard Steinmetz
+program p
+   class(*), pointer :: z
+   z => null(z)
+end