re PR fortran/82743 (uncaught character truncation in derived type initialization)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 1 Jan 2019 21:19:53 +0000 (21:19 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 1 Jan 2019 21:19:53 +0000 (21:19 +0000)
commitcf015ca24045bf34c6f22951d2d190eb31248d21
tree9c2c1f6c1a96bb6a3b4bef4e0117071bd257cd0a
parent730832cd7921eb240793634b86d3d026bba58117
re PR fortran/82743 (uncaught character truncation in derived type initialization)

2019-01-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/82743
* primary.c (gfc_convert_to_structure_constructor): If a character
in a constructor is too long, add a warning with
-Wcharacter-truncation.

2019-01-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/82743
* gfortran.dg/structure_constructor_16.f90: New test.

From-SVN: r267499
gcc/fortran/ChangeLog
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/structure_constructor_16.f90 [new file with mode: 0644]