public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bugs at stellardeath dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/59537] "An automatic object shall not have the SAVE attribute." is not diagnosed.
Date: Sat, 22 Mar 2014 23:28:00 -0000	[thread overview]
Message-ID: <bug-59537-4-v1XvmDaVM6@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-59537-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #4 from Lorenz Hüdepohl <bugs at stellardeath dot org> ---
> From the above gfortran is right to reject the code with initialization.
>
> > Without the SAVE statement it compiles fine.
>
> From the above (C513) this is a bug, the code should give an error without/with -finit-*.

I guess my point is, that I do _not_ specify

  real, save :: a(1:n)

which would be illegal, but merely

  real :: a(1:n)
  save

in which case the "SAVE" statement should apply to all variables to which it
can apply - that is _not_ to the automatic dummy argument "a".

Nonetheless, code that compiles without -finit-real should also compile with
-finit-real, right?
>From gcc-bugs-return-447194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 22 23:31:42 2014
Return-Path: <gcc-bugs-return-447194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24833 invoked by alias); 22 Mar 2014 23:31:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24791 invoked by uid 48); 22 Mar 2014 23:31:38 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/29892] substring out of bounds: Missing variable name for variables with parameter attribute
Date: Sat, 22 Mar 2014 23:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-29892-4-0Xg0Y1jV1M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-29892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-29892-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg02063.txt.bz2
Content-length: 572

http://gcc.gnu.org/bugzilla/show_bug.cgi?id)892

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Is this PR fixed or not?

No answer since 9 months, no activity since 6 years. Closing as FIXED. Please
open a new PR for remaining issues.


  parent reply	other threads:[~2014-03-22 23:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17 17:36 [Bug fortran/59537] New: "Automatic array cannot have an initializer", for -finit-real and a SAVE statement present in subroutine bugs at stellardeath dot org
2014-02-19  9:20 ` [Bug fortran/59537] " bugs at stellardeath dot org
2014-03-22 20:34 ` [Bug fortran/59537] "An automatic object shall not have the SAVE attribute." is not diagnosed dominiq at lps dot ens.fr
2014-03-22 23:28 ` bugs at stellardeath dot org [this message]
2014-03-23  0:01 ` [Bug fortran/59537] No "Automatic array cannot have an initializer", for -finit-real without a SAVE statement present in subroutine dominiq at lps dot ens.fr
2014-05-12 14:39 ` bugs at stellardeath dot org
2015-08-28 18:48 ` dominiq at lps dot ens.fr

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-59537-4-v1XvmDaVM6@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: 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).