https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91015
Bug ID: 91015 Summary: Which is correct working on polymorphic assignment... Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jplatas at ull dot edu.es Target Milestone: --- Created attachment 46526 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46526&action=edit Example A comparative between gfortran 8.1 and Intel fortran compiler in assignments polymorphic variables. Looking the subroutine Swap_Elements_List, there a zone that works using intel fortran compiler and not for gfortran. ... List%reflections(i)=List%reflections(j) ... And there is a second zone for gfortran (using associate construction) where it works for Gfortran and not for intel. associate (t1 => List%reflections(i), t2 => List%reflections(j), tt=> tmp) tt=t1 t1=t2 t2=tt end associate Which version is correct following the standard fortran 2008 rules?