This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR fortran/68154 -- repair damage done byfix for PR fortran/65429


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]