public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59015] I/O of PARAMETER derived type with private component is forbidden Date: Wed, 06 Nov 2013 08:06:00 -0000 [thread overview] Message-ID: <bug-59015-4-1bpiwG0Gnq@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-59015-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59015 Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid, diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2013-11-06 CC| |burnus at gcc dot gnu.org Summary|I/O of derived type with |I/O of PARAMETER derived |private component is |type with private component |forbidden |is forbidden Ever confirmed|0 |1 --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- Confirmed. Not even -pedantic -std=f95 has any effect. Note: The issue only affects PARAMETER. For module variables, one gets: Error: Data transfer element at (1) cannot have PRIVATE components Fortran 2008, "9.6.3 Data transfer input/output list", second bullet point of paragraph 7 [see last sentence after the ";"] "If a list item of derived type in an unformatted input/output statement is not processed by a defined input/output procedure (9.6.4.8), and if any subobject of that list item would be processed by a defined input/output procedure, the list item is treated as if all of the components of the object were specified in the list in component order (4.5.4.7); those components shall be accessible in the scoping unit containing the input/output statement and shall not be pointers or allocatable."
next prev parent reply other threads:[~2013-11-06 8:06 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-11-05 21:39 [Bug fortran/59015] New: I/O of " fxcoudert at gcc dot gnu.org 2013-11-06 8:06 ` burnus at gcc dot gnu.org [this message] 2013-11-06 9:45 ` [Bug fortran/59015] I/O of PARAMETER " fxcoudert at gcc dot gnu.org 2013-11-06 10:10 ` fxcoudert 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=bug-59015-4-1bpiwG0Gnq@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).