public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/46205] Invalid FORALL fails to compile Date: Thu, 11 Nov 2010 13:07:00 -0000 [thread overview] Message-ID: <bug-46205-4-FKBp1rrCYw@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-46205-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46205 --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-11-11 13:07:03 UTC --- Untested patch: Index: resolve.c =================================================================== --- resolve.c (Revision 166598) +++ resolve.c (Arbeitskopie) @@ -9098,8 +9098,9 @@ resolve_code (gfc_code *code, gfc_namesp case EXEC_FORALL: resolve_forall_iterators (code->ext.forall_iterator); - if (code->expr1 != NULL && code->expr1->ts.type != BT_LOGICAL) - gfc_error ("FORALL mask clause at %L requires a LOGICAL " + if (code->expr1 != NULL + && (code->expr1->ts.type != BT_LOGICAL || code->expr1->rank)) + gfc_error ("FORALL mask clause at %L requires a scalar LOGICAL " "expression", &code->expr1->where); break;
next prev parent reply other threads:[~2010-11-11 13:07 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-10-27 23:37 [Bug fortran/46205] New: " jstottsj at gmail dot com 2010-10-28 1:27 ` [Bug fortran/46205] " jvdelisle at gcc dot gnu.org 2010-11-11 13:07 ` burnus at gcc dot gnu.org [this message] 2010-11-11 23:07 ` burnus at gcc dot gnu.org 2010-11-11 23:08 ` burnus 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-46205-4-FKBp1rrCYw@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).