public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/57522] New: [F03] ASSOCIATE construct creates array descriptor with incorrect stride for derived type array component
@ 2013-06-04  9:18 alan.briolat at gmail dot com
  2013-06-04 10:05 ` [Bug fortran/57522] " alan.briolat at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: alan.briolat at gmail dot com @ 2013-06-04  9:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57522

            Bug ID: 57522
           Summary: [F03] ASSOCIATE construct creates array descriptor
                    with incorrect stride for derived type array component
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alan.briolat at gmail dot com

Created attachment 30254
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30254&action=edit
Code demonstrating the bug

The attached code demonstrates a bug (reproducible on 4.6 to 4.9) where using
ASSOCIATE to reference a derived type component in an array appears to have the
wrong stride.  The output is:

           0           1           2           3
           0           4           1           5

when it should be (and is under ifort):

           0           1           2           3
           0           1           2           3

This is probably related to bug 49636, but is a simpler case.  It's also
probably related to http://gcc.gnu.org/wiki/ArrayDescriptorUpdate (which I
found via that bug).  However, if the changes necessary to support this sort of
reference are "future ABI-breaking work", then the current version really
should warn/error rather than generating the wrong stride and silently doing
the wrong thing.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-03-18 10:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-04  9:18 [Bug fortran/57522] New: [F03] ASSOCIATE construct creates array descriptor with incorrect stride for derived type array component alan.briolat at gmail dot com
2013-06-04 10:05 ` [Bug fortran/57522] " alan.briolat at gmail dot com
2013-07-02  9:20 ` dominiq at lps dot ens.fr
2013-12-02  9:59 ` pault at gcc dot gnu.org
2014-02-09 20:51 ` pault at gcc dot gnu.org
2014-03-18 10:42 ` dominiq at lps dot ens.fr
2014-03-18 10:47 ` dominiq at lps dot ens.fr
2014-03-18 10:55 ` pault at gcc dot gnu.org

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).