This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR fortran/91552 -- Walk array constructor to do type conversion
- 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: Sun, 1 Sep 2019 13:58:31 +0100
- Subject: Re: [PATCH] PR fortran/91552 -- Walk array constructor to do type conversion
- References: <20190831201544.GA14621@troutmask.apl.washington.edu>
Hi Steve,
OK to commit.
Thanks
Paul
On Sat, 31 Aug 2019 at 21:16, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
>
> The attached patch has been built and tested on i586-*-freebsd
> and x86_64-*-freebsd. OK to commit?
>
> The patch fixes an ICE during type conversion where an array
> constructor contains another array. The new function recursively
> walks the constructor, and tries to do the type conversion.
> The testcase demonstrates the recursion.
>
> 2019-08-31 Steven G. Kargl <kargl@gc.gnu.org>
>
> PR fortran/91552
> * array.c (walk_array_constructor): New function.
> (gfc_match_array_constructor): Use it.
>
> 2019-08-31 Steven G. Kargl <kargl@gc.gnu.org>
>
> PR fortran/91552
> * gfortran.dg/pr91552.f90: New test.
>
> --
> Steve
--
"If you can't explain it simply, you don't understand it well enough"
- Albert Einstein