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

            Bug ID: 121616
           Summary: Assignment to an unlimited polymorphic variable causes
                    a segmentation fault at runtime
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jean.vezina at gmail dot com
  Target Milestone: ---

Created attachment 62161
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62161&action=edit
Sample program to reproduce the problem

Assignment of a value of intrinsic type (real, integer, etc) to an unlimited
polymorphic variable is not done correctly because a segmentation fault occurs
when a reference to the variable is made after.

Steps to reproduce the problem:

Compile the test program with the command:

gfortran select.f90

Run it

./a.out

A segmentation fault occurs.

Thanks,

Jean Vézina

Reply via email to