This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/82511] [7/8 Regression] ICE Bad IO basetype (12) on attempted read or write of entire DEC structure


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]