Hi Harald, After nearly 12 years, I have been found out!
OK for trunk. Since it has been such a long time, I suggest that you limit your backporting efforts to 8-branch and, at the most, 7-branch. Will you attempt to tackle the other issues in the PR? Thanks Paul On Sun, 3 Feb 2019 at 21:04, Harald Anlauf <anl...@gmx.de> wrote: > > The attached patch fixes an ICE-on-valid that probably goes back to > rev.128130. Apparently the patch applied back then did not check > this code path which resulted in a NULL pointer dereference. This > is remedied by the new testcase base on comment #0 in this PR. > > The PR mentions another wrong-code issue to be addressed separately. > > OK for trunk? And shall this fix be backported? > > Thanks, > Harald > > 2019-02-03 Harald Anlauf <anl...@gmx.de> > > PR fortran/89077 > * decl.c (add_init_expr_to_sym): Copy length of string initializer > to declared symbol. > > 2019-02-03 Harald Anlauf <anl...@gmx.de> > > PR fortran/89077 > * gfortran.dg/pr89077.f90: New test. > -- "If you can't explain it simply, you don't understand it well enough" - Albert Einstein