]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR fortran/89077 (ICE using * as len specifier for character parameter)
authorHarald Anlauf <anlauf@gmx.de>
Sun, 10 Feb 2019 20:05:34 +0000 (20:05 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Sun, 10 Feb 2019 20:05:34 +0000 (20:05 +0000)
commitb0201e0a4b0877abe276d985bf630f1d93bd7ab2
treed5b2a1a7c3f985530571577d163c982429e7744d
parentddcb4f31c9fe554b540255b4562504ac176ef01e
backport: re PR fortran/89077 (ICE using * as len specifier for character parameter)

2019-02-10  Harald Anlauf  <anlauf@gmx.de>

Backport from trunk
PR fortran/89077
* decl.c (add_init_expr_to_sym): Copy length of string initializer
to declared symbol.

PR fortran/89077
* gfortran.dg/pr89077.f90: New test.

From-SVN: r268753
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr89077.f90 [new file with mode: 0644]