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: Thu, 31 Jan 2008 22:52:00 -0000	[thread overview]
Message-ID: <20080131222549.26966.qmail@sourceware.org> (raw)
In-Reply-To: <bug-35040-13648@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from burnus at gcc dot gnu dot org  2008-01-31 22:25 -------
Answer (see link): All these are wrong per answer to an interpretation request:

6.  INTEGER :: B = BIT_SIZE(B)
7.  INTEGER :: B(BIT_SIZE(B))
8.  INTEGER :: D = DIGITS(D)
9.  INTEGER :: D(DIGITS(D))
10. REAL :: X = EPSILON(X)
2.  INTEGER(selected_int_kind(4)) :: A(KIND(A)) 3.  INTEGER ::
A(2,2*SIZE(A,1)+1) 4.  CHARACTER :: C(10)*(SIZE(C,1)) 5.  INTEGER ::
P(10) = LBOUND(P,1)
1.  INTEGER :: P(complicated_expression_for_lower_bound_1:   &
                & complicated_expression_for_upper_bound_1,   &
                & complicated_expression_for_lower_bound_2:   &
                & complicated_expression_for_upper_bound_2) = &
                & RESHAPE( (/ 11, 21, 12, 22 /), SHAPE(P) ) 

And I also believe all our examples in this PR are wrong. While we really have
to reject
  REAL(8), PARAMETER :: xyz(size(xyz))  = 1
we could allow the others as extension (i.e. only reject using -std=f*) - or we
reject them all.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-31 22:25:49
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35040


  parent reply	other threads:[~2008-01-31 22:26 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 [this message]
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
     [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=20080131222549.26966.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: link
Be 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).