This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/66679] [OOP] ICE with class(*) and transfer


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

--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Aug 12 17:19:09 2018
New Revision: 263499

URL: https://gcc.gnu.org/viewcvs?rev=263499&root=gcc&view=rev
Log:
2018-08-12  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/66679
        * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Class array
        elements are returned as references to the data element. Get
        the class expression by stripping back the references. Use this
        for the element size.

2018-08-12  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/66679
        * gfortran.dg/transfer_class_3.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/transfer_class_3.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]