This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR fortran/68154 -- repair damage done byfix for PR fortran/65429
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 30 Oct 2015 10:31:06 +0100
- Subject: Re: [PATCH] PR fortran/68154 -- repair damage done byfix for PR fortran/65429
- Authentication-results: sourceware.org; auth=none
- References: <20151030000328 dot GA34712 at troutmask dot apl dot washington dot edu>
Dear Steve,
OK to commit.
Thanks for the fix.
Paul
On 30 October 2015 at 01:03, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
> The attached patch restores 3 lines of code removed in my
> fix for PR fortran/65429. The code now checks for a NULL
> character length in the typespec. If it is indeed NULL,
> gfortran will look for a valid constructor to use (ie.,
> the 3 lines of code). It is somewhat surprising that
> it took 6 months for this bug to appear. Patch tested
> on x86_64-*-freebsd. OK to commit?
>
> 2015-10-29 Steven G. Kargl <kargl@gcc.gnu.org>
>
> PR fortran/68154
> * decl.c (add_init_expr_to_sym): if the char length in the typespec
> is NULL, check for and use the constructor.
>
> 2015-10-29 Steven G. Kargl <kargl@gcc.gnu.org>
>
> PR fortran/68154
> *gfortran.dg/pr68154.f90
>
> --
> Steve
--
Outside of a dog, a book is a man's best friend. Inside of a dog it's
too dark to read.
Groucho Marx