public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "toon at moene dot indiv dot nluug dot nl" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/30660] New: Allocatable components of a derived type "require" the SAVE attribute. Date: Wed, 31 Jan 2007 21:34:00 -0000 [thread overview] Message-ID: <bug-30660-109@http.gcc.gnu.org/bugzilla/> (raw) The attached code draws the following, bogus, error message from the compiler: $ /usr/snp/bin/gfortran -c globals.f90 globals.f90:37.24: TYPE(weight_t) g_winfo ! weights info 1 Error: Object 'g_winfo' at (1) must have the SAVE attribute for default initialization of a component globals.f90:36.21: TYPE(grib_t) g_dest ! output field 1 Error: Object 'g_dest' at (1) must have the SAVE attribute for default initialization of a component It's related to the allocatable components of said types. -- Summary: Allocatable components of a derived type "require" the SAVE attribute. Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: toon at moene dot indiv dot nluug dot nl http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30660
next reply other threads:[~2007-01-31 21:34 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-01-31 21:34 toon at moene dot indiv dot nluug dot nl [this message] 2007-01-31 21:38 ` [Bug fortran/30660] " toon at moene dot indiv dot nluug dot nl 2007-02-02 13:14 ` pault at gcc dot gnu dot org 2007-02-02 16:15 ` pault at gcc dot gnu dot org 2007-02-03 12:46 ` fxcoudert at gcc dot gnu dot org 2007-02-03 13:39 ` pault at gcc dot gnu dot org 2007-02-04 13:17 ` [Bug fortran/30660] [4.2 and 4.1 only] " toon at moene dot indiv dot nluug dot nl 2007-02-05 9:37 ` paulthomas2 at wanadoo dot fr 2007-02-11 9:57 ` pault at gcc dot gnu dot org 2007-02-17 22:42 ` pault at gcc dot gnu dot org 2007-02-19 21:02 ` mmitchel at gcc dot gnu dot org 2007-02-22 22:10 ` patchapp at dberlin dot org 2007-02-23 16:35 ` burnus at gcc dot gnu dot org 2007-03-01 9:44 ` [Bug fortran/30660] [4.2 " burnus at gcc dot gnu dot org 2007-03-01 9:45 ` [Bug fortran/30660] " 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=bug-30660-109@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: 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).