public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Paul Thomas <pault@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-10089] Fortran: Check that the ICE does not reappear [PR102597]
Date: Tue, 23 Apr 2024 09:23:00 +0000 (GMT)	[thread overview]
Message-ID: <20240423092300.9FD933858D38@sourceware.org> (raw)

https://gcc.gnu.org/g:ca00bf02dcc37f9ff1028ca1d90e8b8d95d69683

commit r14-10089-gca00bf02dcc37f9ff1028ca1d90e8b8d95d69683
Author: Paul Thomas <pault@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  <pault@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  <gscfq@t-online.de>
+program p
+   use iso_fortran_env
+   associate (y => (compiler_version)) ! { dg-error "is a procedure name" }
+   end associate
+end

                 reply	other threads:[~2024-04-23  9:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240423092300.9FD933858D38@sourceware.org \
    --to=pault@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).