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

            Bug ID: 127591
           Summary: Intrinsic polymorphic assignment run time error - an
                    update
           Product: gcc
           Version: 13.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daneel at hotmail dot it
  Target Milestone: ---

Created attachment 65676
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65676&action=edit
Complete examples to reproduce the problem and execution logs on linux and
windows

Hello,

the problem reported for gfortran version 7.0 (bug id 81411) seems to be also
present in version 13.3.0 for Linux and 13.2.0 for Windows (WinLibs standalone
build of GCC and MinGW-w64).

I attached two examples that comes from the book "Introduction to programming
with Fortran" (4th edition) which failed in the same way.

The first example (contained in the "ch28" folder), works if the first include
is:

include 'ch2805_shape_module.f90'

where the module defines an explicit assignment operator, but fails if the
include has changed as follows:

include 'ch2806_shape_module.f90'

where implicit assignment is used.

The second example (contained in the "ch29" folder) seems to fail even if an
explicit assignment is defined.

I haven't any possibility to test the examples with more recent versions
(perhaps the problem is already resolved in some of these versions).

Reply via email to