https://gcc.gnu.org/g:ca00bf02dcc37f9ff1028ca1d90e8b8d95d69683
commit r14-10089-gca00bf02dcc37f9ff1028ca1d90e8b8d95d69683 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Tue Apr 23 10:22:48 2024 +0100 Fortran: Check that the ICE does not reappear [PR102597] 2024-04-23 Paul Thomas <pa...@gcc.gnu.org> gcc/testsuite/ PR fortran/102597 * gfortran.dg/pr102597.f90: New test. Diff: --- gcc/testsuite/gfortran.dg/pr102597.f90 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gcc/testsuite/gfortran.dg/pr102597.f90 b/gcc/testsuite/gfortran.dg/pr102597.f90 new file mode 100644 index 00000000000..c2d875f897a --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr102597.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! Check that PR102597 does not resurface. Regression caused ICE at associate +! statement. +! Contributed by Gerhard Steinmetz <gs...@t-online.de> +program p + use iso_fortran_env + associate (y => (compiler_version)) ! { dg-error "is a procedure name" } + end associate +end