public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96102] ICE in check_host_association, at fortran/resolve.c:5994 Date: Tue, 07 Jul 2020 21:51:51 +0000 [thread overview] Message-ID: <bug-96102-4-AWiFbJfxdN@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-96102-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96102 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org Ever confirmed|0 |1 Priority|P3 |P4 Last reconfirmed| |2020-07-07 Status|UNCONFIRMED |NEW --- Comment #2 from kargl at gcc dot gnu.org --- Index: gcc/fortran/resolve.c =================================================================== --- gcc/fortran/resolve.c (revision 280157) +++ gcc/fortran/resolve.c (working copy) @@ -5899,6 +5899,15 @@ check_host_association (gfc_expr *e) && sym->attr.flavor == FL_PROCEDURE && sym->attr.contained) { + + if (old_sym->attr.flavor == FL_VARIABLE + && sym->attr.proc == PROC_INTERNAL) + { + gfc_error ("Internal procedure %qs at %L has already been " + "used as a variable", sym->name, &sym->declared_at); + return false; + } + /* Clear the shape, since it might not be valid. */ gfc_free_shape (&e->shape, e->rank);
next prev parent reply other threads:[~2020-07-07 21:51 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-07 17:27 [Bug fortran/96102] New: " gscfq@t-online.de 2020-07-07 17:27 ` [Bug fortran/96102] " gscfq@t-online.de 2020-07-07 21:51 ` kargl at gcc dot gnu.org [this message] 2020-08-02 12:27 ` pault at gcc dot gnu.org 2020-08-10 5:19 ` cvs-commit at gcc dot gnu.org 2020-12-28 12:00 ` pault 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-96102-4-AWiFbJfxdN@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: linkBe 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).