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: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: kargl at uw 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, 4 Nov 2016 20:14:31 +0100
- 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> <20161104182109.GA57922@troutmask.apl.washington.edu>
Hi Steve,
Thanks. At least it cannot do any harm :-)
I will get on with it.
Paul
On 4 November 2016 at 19:21, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
> 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
--
The difference between genius and stupidity is; genius has its limits.
Albert Einstein