public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/25072] better diagnostic needed Date: Sat, 26 Nov 2005 19:53:00 -0000 [thread overview] Message-ID: <20051126195306.23600.qmail@sourceware.org> (raw) In-Reply-To: <bug-25072-6642@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from fxcoudert at gcc dot gnu dot org 2005-11-26 19:53 ------- gfortran doesn't issue a correct error, and throw an ICE instead: In file foo.f90:2 FORALL(I=1:10,T(I)) A(I)=I 1 Internal Error at (1): free_expr0(): Bad expr type ## g95 ## In file foo.f90:2 FORALL(I=1:10,T(I)) A(I)=I 1 Error: Function reference to 't' in FORALL mask at (1) is to a non-PURE procedure ## Intel ## fortcom: Error: foo.f90, line 2: Any function referenced in a forall-body-stmt must have the PURE attribute explicitly declared. [T] FORALL(I=1:10,T(I)) A(I)=I --------------^ compilation aborted for foo.f90 (code 1) ## Portland ## PGF90-F-0155-t - FORALL requires PURE function interface (foo.f90: 2) PGF90/any Linux/x86 5.2-4: compilation aborted ## Sun ## FORALL(I=1:10,T(I)) A(I)=I ^ "foo.f90", Line = 2, Column = 15: ERROR: Procedure T is referenced within a scalar-mask-expression. It must be a PURE procedure. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |ice-on-invalid-code Last reconfirmed|0000-00-00 00:00:00 |2005-11-26 19:53:06 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25072
next prev parent reply other threads:[~2005-11-26 19:53 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-11-26 17:55 [Bug fortran/25072] New: " jv244 at cam dot ac dot uk 2005-11-26 19:53 ` fxcoudert at gcc dot gnu dot org [this message] 2006-02-02 19:12 ` [Bug fortran/25072] non PURE function used in For-All kargl at gcc dot gnu dot org 2006-02-03 21:32 ` kargl at gcc dot gnu dot org 2006-02-03 21:37 ` kargl at gcc dot gnu dot org 2006-06-20 14:26 ` paul dot richard dot thomas at cea dot fr 2006-06-21 0:01 ` pault at gcc dot gnu dot org 2006-06-21 20:44 ` pault at gcc dot gnu dot org 2006-06-25 15:33 ` pault at gcc dot gnu dot org 2006-06-25 18:11 ` pault at gcc dot gnu dot org 2006-06-25 19:56 ` pault at gcc dot gnu dot 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=20051126195306.23600.qmail@sourceware.org \ --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).