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/95502] ICE in gfc_check_do_variable, at fortran/parse.c:4446 Date: Wed, 03 Jun 2020 16:52:25 +0000 [thread overview] Message-ID: <bug-95502-4-GK0aUk7Gul@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-95502-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95502 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org Last reconfirmed| |2020-06-03 Priority|P3 |P4 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from kargl at gcc dot gnu.org --- Fixes z1.f90. May fix others. Index: gcc/fortran/parse.c =================================================================== --- gcc/fortran/parse.c (revision 280157) +++ gcc/fortran/parse.c (working copy) @@ -4440,6 +4440,9 @@ gfc_check_do_variable (gfc_symtree *st) { gfc_state_data *s; + if (!st) + return 0; + for (s=gfc_state_stack; s; s = s->previous) if (s->do_variable == st) { Index: gcc/fortran/expr.c =================================================================== --- gcc/fortran/expr.c (revision 280157) +++ gcc/fortran/expr.c (working copy) @@ -3784,6 +3784,9 @@ gfc_check_pointer_assign (gfc_expr *lvalue, gfc_expr * int proc_pointer; bool same_rank; + if (!lvalue->symtree) + return false; + lhs_attr = gfc_expr_attr (lvalue); if (lvalue->ts.type == BT_UNKNOWN && !lhs_attr.proc_pointer) {
next prev parent reply other threads:[~2020-06-03 16:52 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-03 15:44 [Bug fortran/95502] New: " gscfq@t-online.de 2020-06-03 16:52 ` kargl at gcc dot gnu.org [this message] 2020-06-09 11:40 ` [Bug fortran/95502] " marxin at gcc dot gnu.org 2021-06-04 21:13 ` anlauf at gcc dot gnu.org 2021-06-16 19:54 ` cvs-commit at gcc dot gnu.org 2021-06-16 20:05 ` cvs-commit at gcc dot gnu.org 2021-06-18 18:21 ` cvs-commit at gcc dot gnu.org 2021-06-18 18:42 ` cvs-commit at gcc dot gnu.org 2021-06-18 18:45 ` 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-95502-4-GK0aUk7Gul@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).