[Bug fortran/78356] [7 Regression] [OOP] segfault allocating polymorphic variable with polymorphic component with allocatable component
vehre at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 16 13:46:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78356
--- Comment #8 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Wed Nov 16 13:45:29 2016
New Revision: 242490
URL: https://gcc.gnu.org/viewcvs?rev=242490&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/class_allocate_23.f08
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/class.c
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list