2018-02-20 Thomas Koenig <tkoenig@gcc.gnu.org>
commit59f3708ec9d9fce5e77f8514fc1f778e2cf52604
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2018 18:57:34 +0000 (20 18:57 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2018 18:57:34 +0000 (20 18:57 +0000)
tree7520b2aad9e38ebed2f705c5a4633c769ef8849e
parent3a06a652f31f0cccf1e8dadab0edb0ccf9b2b95b
2018-02-20  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/48890
PR fortran/83823
* primary.c (gfc_convert_to_structure_constructor):
For a constant string constructor, make sure the length
is correct.

2018-02-20  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/48890
PR fortran/83823
* gfortran.dg/structure_constructor_14.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257856 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/structure_constructor_14.f90 [new file with mode: 0644]