]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fortran: Check that the ICE does not reappear [PR102597]
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 23 Apr 2024 09:22:48 +0000 (10:22 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 23 Apr 2024 09:22:48 +0000 (10:22 +0100)
2024-04-23  Paul Thomas  <pault@gcc.gnu.org>

gcc/testsuite/
PR fortran/102597
* gfortran.dg/pr102597.f90: New test.

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

diff --git a/gcc/testsuite/gfortran.dg/pr102597.f90 b/gcc/testsuite/gfortran.dg/pr102597.f90
new file mode 100644 (file)
index 0000000..c2d875f
--- /dev/null
@@ -0,0 +1,9 @@
+! { dg-do compile }
+! Check that PR102597 does not resurface. Regression caused ICE at associate
+! statement.
+! Contributed by Gerhard Steinmetz  <gscfq@t-online.de>
+program p
+   use iso_fortran_env
+   associate (y => (compiler_version)) ! { dg-error "is a procedure name" }
+   end associate
+end