]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/class.cc
re PR fortran/72770 (ICE in make_ssa_name_fn, at tree-ssanames.c:263)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 25 Oct 2016 17:01:58 +0000 (19:01 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 25 Oct 2016 17:01:58 +0000 (19:01 +0200)
commitcef026ecafe169871284fded6494efe33e763950
treeb0f80442a77baa418265d5ccf11e02c29050fe97
parent6c3b5bf0725df869a12894682068b12dbf220568
re PR fortran/72770 (ICE in make_ssa_name_fn, at tree-ssanames.c:263)

gcc/testsuite/ChangeLog:

2016-10-25  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/72770
* gfortran.dg/alloc_comp_class_5.f03: Added test again that caused
this pr.

gcc/fortran/ChangeLog:

2016-10-25  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/72770
* class.c (find_intrinsic_vtab): No longer encode the string length
into vtype's name and use the char's kind for the size instead of
the string_length time the size.
* trans-array.c (gfc_conv_ss_descriptor): For deferred length char
arrays the dynamically sized type needs to be declared.
(build_class_array_ref): Address the i-th array element by multiplying
it with the _vptr->_size and the _len to make sure char arrays are
addressed correctly.
* trans-expr.c (gfc_conv_intrinsic_to_class): Made comment more
precise.

From-SVN: r241528
gcc/fortran/ChangeLog
gcc/fortran/class.c
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_comp_class_5.f03