]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/44857 (ICE in output_constructor_regular_field, at varasm.c:4996)
authorTobias Burnus <burnus@net-b.de>
Wed, 4 Aug 2010 11:51:32 +0000 (13:51 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 4 Aug 2010 11:51:32 +0000 (13:51 +0200)
commita48a91732b5252f6be1f0b3d54bfb1da52947caf
tree9ee4d951e1aaa29f3f08cdd47228251f110c2d47
parent48176d810041c2d6a68ddd315044307044d00d07
re PR fortran/44857 (ICE in output_constructor_regular_field, at varasm.c:4996)

2010-08-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44857
        * resolve.c (resolve_structure_cons): Fix handling of
        initialization structcture constructors with character
        elements of the wrong length.
        * array.c (gfc_check_iter_variable): Add NULL check.
        (gfc_resolve_character_array_constructor): Also truncate
        character length.

2010-08-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44857
        * gfortran.dg/derived_constructor_char_1.f90: New.
        * gfortran.dg/derived_constructor_char_2.f90: New.

From-SVN: r162863
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/derived_constructor_char_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/derived_constructor_char_2.f90 [new file with mode: 0644]