re PR fortran/71860 ([OOP] ICE on pointing to null(mold), verify_gimple failed)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 6 Feb 2019 20:34:42 +0000 (20:34 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 6 Feb 2019 20:34:42 +0000 (20:34 +0000)
2019-02-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

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

From-SVN: r268590

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

index 0e6d85e9dd02331a777aab7d0256b36c4e3a739d..53f4cd3f75d4112dba841e77c949bac684470037 100644 (file)
@@ -1,3 +1,8 @@
+2019-02-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/71860
+       * gfortran.dg/null_10.f90: New test.
+
 2019-02-06  David Malcolm  <dmalcolm@redhat.com>
 
        PR c++/71302
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