public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/35040] usage of init expression in its own definition Date: Sat, 01 Nov 2008 22:15:00 -0000 [thread overview] Message-ID: <20081101221405.29984.qmail@sourceware.org> (raw) In-Reply-To: <bug-35040-13648@http.gcc.gnu.org/bugzilla/> ------- Comment #6 from burnus at gcc dot gnu dot org 2008-11-01 22:14 ------- (In reply to comment #5) > On a related note: The following snippet from PR36426 produces an ICE. > function foo(x) > character(len=len(x)) :: foo,x > end function foo As this ICE is a regression, I opened the PR 37992 for this. (It is also not an accepts invalid since gfortran 4.4 now prints an error message.) * * * For the LHS (of "=") expressions such as in comment 1, one now also gets the error message. * * * (In reply to comment #4) > > And I also believe all our examples in this PR are wrong. > In all the invalid examples given in comment #3, the dimension specification > is on the rhs of '::'. In my example it's on the lhs. Sorry, I don't understand / find your example. The example REAL, DIMENSION(2,2), PARAMETER :: xyz = RESHAPE((/ 1,2,3,4 /), SHAPE(xyz)) is no different from the invalid examples of comment #3: REAL :: X = EPSILON(X) > If the latter is invalid too, how about > DIMENSION :: xyz(2,2) > REAL, PARAMETER :: xyz = RESHAPE((/ 1,2,3,4 /), SHAPE(xyz)) I think that test case is OK. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35040
next prev parent reply other threads:[~2008-11-01 22:15 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-01-31 10:43 [Bug fortran/35040] New: " dfranke at gcc dot gnu dot org 2008-01-31 12:46 ` [Bug fortran/35040] " burnus at gcc dot gnu dot org 2008-01-31 13:30 ` burnus at gcc dot gnu dot org 2008-01-31 22:52 ` burnus at gcc dot gnu dot org 2008-02-01 9:48 ` dfranke at gcc dot gnu dot org 2008-11-01 21:20 ` janus at gcc dot gnu dot org 2008-11-01 22:15 ` burnus at gcc dot gnu dot org [this message] [not found] <bug-35040-4@http.gcc.gnu.org/bugzilla/> 2012-06-27 16:18 ` burnus at gcc dot gnu.org 2013-12-14 9:42 ` janus 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=20081101221405.29984.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).