re PR fortran/78356 ([OOP] segfault allocating polymorphic variable with...
re PR fortran/78356 ([OOP] segfault allocating polymorphic variable with polymorphic component with allocatable component) gcc/fortran/ChangeLog: 2016-11-16 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/78356 * class.c (gfc_is_class_scalar_expr): Prevent taking an array ref for a component ref. * trans-expr.c (gfc_trans_assignment_1): Ensure a reference to the object to copy is generated, when assigning class objects. gcc/testsuite/ChangeLog: 2016-11-16 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/78356 * gfortran.dg/class_allocate_23.f08: New test. From-SVN: r242490
Showing
- gcc/fortran/ChangeLog 8 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/class.c 4 additions, 2 deletionsgcc/fortran/class.c
- gcc/fortran/trans-expr.c 19 additions, 8 deletionsgcc/fortran/trans-expr.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gfortran.dg/class_allocate_23.f08 31 additions, 0 deletionsgcc/testsuite/gfortran.dg/class_allocate_23.f08
Loading
Please register or sign in to comment