This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/82511] [7/8 Regression] ICE Bad IO basetype (12) on attempted read or write of entire DEC structure
- From: "foreese at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 Oct 2017 01:39:26 +0000
- Subject: [Bug fortran/82511] [7/8 Regression] ICE Bad IO basetype (12) on attempted read or write of entire DEC structure
- Auto-submitted: auto-generated
- References: <bug-82511-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82511
Fritz Reese <foreese at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |foreese at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |foreese at gcc dot gnu.org
--- Comment #3 from Fritz Reese <foreese at gcc dot gnu.org> ---
Under other DEC compilers, it seems STRUCTUREs are to be treated consistently
with derived types in regards to I/O lists. That is to say, a structure
variable is treated as if each of its named components was listed on the I/O
list. (Even with UNIONs/MAPs, each named component is to be treated as having
been listed in place of the DEC RECORD containing it, so that the last
component written to within overlapping MAPs takes effect. Yikes.)
I believe both the code in the attachment and the "intended code" (writing to
bucket.c16 instead of bucket) should be accepted, whereas they both ICE
currently.
I will look into it.