This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] Fix PR 85631, wrong size checking with allocatable arrays
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Thomas Koenig <tkoenig at netcologne dot de>
- 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, 8 Jun 2018 12:15:29 -0700
- Subject: Re: [patch, fortran] Fix PR 85631, wrong size checking with allocatable arrays
- References: <7a7a342c-c824-0acc-0966-63a82ec9de8a@netcologne.de>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
On Fri, Jun 08, 2018 at 09:06:55PM +0200, Thomas Koenig wrote:
>
> the attached patch fixes a bug which was uncovered by the PR in
> a matmul regression.
>
> The problem is that bounds checking on the LHS with reallocation on
> assignment makes no sense, and the original flag was not set for
> the case in question.
>
> I added both the original test and the reduced test to the single test
> case.
>
> OK for trunk?
>
OK.
--
steve