This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR64933 - ASSOCIATE on a character variable does not allow substring expressions
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- 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, 4 Nov 2016 11:21:09 -0700
- Subject: Re: [Patch, fortran] PR64933 - ASSOCIATE on a character variable does not allow substring expressions
- Authentication-results: sourceware.org; auth=none
- References: <CAGkQGiJ+=MPhaCh2=9Dh2jxqKsqOJOEJ+-a=zgXGwzVAYmTsJA@mail.gmail.com>
- Reply-to: kargl at uw dot edu
On Fri, Nov 04, 2016 at 12:43:37PM +0100, Paul Richard Thomas wrote:
>
> The associate construct does not readily permit the identification of
> the associate name as an array during parsing. However, this can be
> done whilst matching rvalues within the associate block. This patch
> extends this identification in gfc_match_varspec, whilst excluding
> character types from the present test. This latter change prevents
> scalar substrings from being pegged as array references, which was the
> origin of this bug.
>
> Bootstraps and regtests on FC21/x86_64.
>
> OK for trunk?
>
Looks good to me.
--
Steve