public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "anlauf at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/108453] [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361 since r6-3704-g2b3f52a2d0fb22ba
Date: Fri, 27 Jan 2023 22:20:44 +0000	[thread overview]
Message-ID: <bug-108453-4-XmcgQAqAMU@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-108453-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108453

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org

--- Comment #2 from anlauf at gcc dot gnu.org ---
Patch:

diff --git a/gcc/fortran/match.cc b/gcc/fortran/match.cc
index 5e933c12931..f9393f189e0 100644
--- a/gcc/fortran/match.cc
+++ b/gcc/fortran/match.cc
@@ -5345,6 +5345,15 @@ gfc_match_common (void)
                goto cleanup;
            }

+         /* F2018:C8121: A variable-name shall not be a name made accessible
+            by use association.  */
+         if (sym->attr.use_assoc)
+           {
+             gfc_error ("Symbol %qs at %C is USE associated from module %qs "
+                        "and cannot occur in COMMON", sym->name, sym->module);
+             goto cleanup;
+           }
+
          /* Deal with an optional array specification after the
             symbol name.  */
          m = gfc_match_array_spec (&as, true, true);

  parent reply	other threads:[~2023-01-27 22:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-18 18:27 [Bug fortran/108453] New: [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361 gscfq@t-online.de
2023-01-19  7:47 ` [Bug fortran/108453] " rguenth at gcc dot gnu.org
2023-01-19 14:25 ` [Bug fortran/108453] [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361 since r6-3704-g2b3f52a2d0fb22ba marxin at gcc dot gnu.org
2023-01-27 22:20 ` anlauf at gcc dot gnu.org [this message]
2023-01-28 17:08 ` anlauf at gcc dot gnu.org
2023-01-28 20:58 ` cvs-commit at gcc dot gnu.org
2023-02-02 21:01 ` cvs-commit at gcc dot gnu.org
2023-02-04 15:43 ` cvs-commit at gcc dot gnu.org
2023-02-05 18:55 ` cvs-commit at gcc dot gnu.org
2023-02-05 18:57 ` anlauf at gcc dot gnu.org

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=bug-108453-4-XmcgQAqAMU@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).