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

--- Comment #8 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Tue Oct 25 17:01:58 2016
New Revision: 241528

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

2016-10-25  Andre Vehreschild  <ve...@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  <ve...@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.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/class.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/alloc_comp_class_5.f03

Reply via email to