[Bug fortran/80392] [5/6/7/8 Regression] [OOP] ICE with allocatable polymorphic function result in a procedure pointer component

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 5 20:15:00 GMT 2017


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

--- Comment #10 from janus at gcc dot gnu.org ---
Author: janus
Date: Fri May  5 20:09:20 2017
New Revision: 247655

URL: https://gcc.gnu.org/viewcvs?rev=247655&root=gcc&view=rev
Log:
2017-05-05  Janus Weil  <janus@gcc.gnu.org>

        Backport from trunk
        PR fortran/80392
        * trans-types.c (gfc_get_derived_type): Prevent an infinite loop when
        building a derived type that includes a procedure pointer component
        with a polymorphic result.

2017-05-05  Janus Weil  <janus@gcc.gnu.org>

        Backport from trunk
        PR fortran/80392
        * gfortran.dg/proc_ptr_comp_49.f90: New test case.

Added:
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/proc_ptr_comp_49.f90
Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/trans-types.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list