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/67451] [5/6 Regression] [F08] ICE with sourced allocation from coarray.


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

--- Comment #5 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Wed Feb  3 09:44:18 2016
New Revision: 233099

URL: https://gcc.gnu.org/viewcvs?rev=233099&root=gcc&view=rev
Log:
gcc/testsuite/ChangeLog:

2016-02-03  Andre Vehreschild  <vehre@gcc.gnu.org>

        PR fortran/67451
        PR fortran/69418
        * gfortran.dg/coarray_allocate_2.f08: New test.
        * gfortran.dg/coarray_allocate_3.f08: New test.
        * gfortran.dg/coarray_allocate_4.f08: New test.


gcc/fortran/ChangeLog:

2016-02-03  Andre Vehreschild  <vehre@gcc.gnu.org>

        PR fortran/67451
        PR fortran/69418
        * trans-expr.c (gfc_copy_class_to_class): For coarrays just the
        pointer is passed.  Take it as is without trying to deref the
        _data component.
        * trans-stmt.c (gfc_trans_allocate): Take care of coarrays as
        argument to source=-expression.


Added:
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/coarray_allocate_2.f08
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/coarray_allocate_3.f08
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/coarray_allocate_4.f08
Modified:
    branches/gcc-5-branch/gcc/fortran/ChangeLog
    branches/gcc-5-branch/gcc/fortran/trans-expr.c
    branches/gcc-5-branch/gcc/fortran/trans-stmt.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

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