public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/100650] New: Passing a derived-type array constructor to the reshape intrinsic gives incorrect results
@ 2021-05-18 12:35 here.is.a.gcc.bug at gmail dot com
  2023-06-20 22:18 ` [Bug fortran/100650] " damian at archaeologic dot codes
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: here.is.a.gcc.bug at gmail dot com @ 2021-05-18 12:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100650

            Bug ID: 100650
           Summary: Passing a derived-type array constructor to the
                    reshape intrinsic gives incorrect results
           Product: gcc
           Version: 11.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: here.is.a.gcc.bug at gmail dot com
  Target Milestone: ---

Created attachment 50836
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50836&action=edit
A minimum broken example. Needs no special compiler flags.

A type `String` has a `character(:), allocatable` component.

When an array constructor of type `String` is passed to the reshape intrinsic,
the components of the resulting array are incorrect.

The bug does not trigger if the array constructor is used to create a named
array and this named array is passed to the reshape intrinsic.

This affects at least versions 7.4.0, 10.1.0 and 11.1.1 of gfortran.

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

end of thread, other threads:[~2023-06-22 21:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 12:35 [Bug fortran/100650] New: Passing a derived-type array constructor to the reshape intrinsic gives incorrect results here.is.a.gcc.bug at gmail dot com
2023-06-20 22:18 ` [Bug fortran/100650] " damian at archaeologic dot codes
2023-06-21  9:27 ` damian at archaeologic dot codes
2023-06-21 21:10 ` pault at gcc dot gnu.org
2023-06-22 21:24 ` damian at archaeologic dot codes

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