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/25050] CSHIFT not allowed in initialization expression Date: Sat, 26 Nov 2005 19:06:00 -0000 [thread overview] Message-ID: <20051126190613.31497.qmail@sourceware.org> (raw) In-Reply-To: <bug-25050-6642@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from fxcoudert at gcc dot gnu dot org 2005-11-26 19:06 ------- The ice here is the same as the one in PR25049, but we shouldn't even come into that part of the front-end. gfortran should recognize that CSHIFT is not allowed here. ## gfortran ## foo.f90:0: internal compiler error: in gfc_conv_array_initializer, at fortran/trans-array.c:3108 ## g95 ## In file foo.f90:3 integer, parameter, dimension(2,2) :: B = CSHIFT(A,1) 1 Error: Function 'cshift' cannot appear in an initialization expression at (1) ## Intel ## fortcom: Error: foo.f90, line 3: This intrinsic function is invalid in constant expressions. [CSHIFT] integer, parameter, dimension(2,2) :: B = CSHIFT(A,1) --------------------------------------------^ compilation aborted for foo.f90 (code 1) ## Portland ## PGF90-S-0459-Target of NULL() assignment must be a pointer (foo.f90: 3) PGF90-S-0066-Too few data constants in initialization statement (foo.f90: 3) 0 inform, 0 warnings, 2 severes, 0 fatal for m ## Sun ## module M ^ "foo.f90", Line = 1, Column = 8: ERROR: The compiler has detected errors in module "M". No module information file will be created for this module. integer, parameter, dimension(2,2) :: B = CSHIFT(A,1) ^ "foo.f90", Line = 3, Column = 45: ERROR: Intrinsic function "CSHIFT" is not allowed in an initialization expression. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |25049 Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |ice-on-invalid-code Last reconfirmed|0000-00-00 00:00:00 |2005-11-26 19:06:13 date| | Summary|better diagnostic needed |CSHIFT not allowed in | |initialization expression http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25050
next prev parent reply other threads:[~2005-11-26 19:06 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-11-26 17:45 [Bug fortran/25050] New: better diagnostic needed jv244 at cam dot ac dot uk 2005-11-26 19:06 ` fxcoudert at gcc dot gnu dot org [this message] 2006-06-20 4:31 ` [Bug fortran/25050] CSHIFT not allowed in initialization expression pault at gcc dot gnu dot org 2006-06-23 4:47 ` pault at gcc dot gnu dot org 2006-06-23 15:41 ` 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=20051126190613.31497.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).