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/43185] [F2008] Implicit SAVE in MODULEs Date: Fri, 26 Feb 2010 22:26:00 -0000 [thread overview] Message-ID: <20100226222635.9640.qmail@sourceware.org> (raw) In-Reply-To: <bug-43185-13404@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from burnus at gcc dot gnu dot org 2010-02-26 22:26 ------- Index: resolve.c =================================================================== --- resolve.c (Revision 157097) +++ resolve.c (Arbeitskopie) @@ -8938,12 +8938,11 @@ && !sym->ns->save_all && !sym->attr.save && !sym->attr.pointer && !sym->attr.allocatable && has_default_initializer (sym->ts.u.derived)) - { - gfc_error("Object '%s' at %L must have the SAVE attribute for " - "default initialization of a component", - sym->name, &sym->declared_at); - return FAILURE; - } + && (gfc_notify_std (GFC_STD_F2008, "Fortran 2008: Implied SAVE for " + "module variable '%s' at %L, needed due to " + "the default initializer", sym->name, + &sym->declared_at) == FAILURE) + return FAILURE; if (sym->ts.type == BT_CLASS) { -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43185
next prev parent reply other threads:[~2010-02-26 22:26 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-02-25 23:57 [Bug fortran/43185] New: " burnus at gcc dot gnu dot org 2010-02-26 7:36 ` [Bug fortran/43185] " burnus at gcc dot gnu dot org 2010-02-26 22:26 ` burnus at gcc dot gnu dot org [this message] 2010-02-26 22:52 ` burnus at gcc dot gnu dot org 2010-02-27 17:25 ` burnus at gcc dot gnu dot org 2010-02-27 17:26 ` burnus 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=20100226222635.9640.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).