From: Paul Thomas Date: Tue, 23 Apr 2024 09:22:48 +0000 (+0100) Subject: Fortran: Check that the ICE does not reappear [PR102597] X-Git-Tag: basepoints/gcc-15~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca00bf02dcc37f9ff1028ca1d90e8b8d95d69683;p=thirdparty%2Fgcc.git Fortran: Check that the ICE does not reappear [PR102597] 2024-04-23 Paul Thomas gcc/testsuite/ PR fortran/102597 * gfortran.dg/pr102597.f90: New test. --- diff --git a/gcc/testsuite/gfortran.dg/pr102597.f90 b/gcc/testsuite/gfortran.dg/pr102597.f90 new file mode 100644 index 000000000000..c2d875f897ab --- /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 +program p + use iso_fortran_env + associate (y => (compiler_version)) ! { dg-error "is a procedure name" } + end associate +end