This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR fortran/83633 -- check for nonconstant explicit shape array
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 27 Jan 2018 09:23:17 -0800
- Subject: Re: [PATCH] PR fortran/83633 -- check for nonconstant explicit shape array
- Authentication-results: sourceware.org; auth=none
- References: <20180126233135.GA64665@troutmask.apl.washington.edu> <CAO9iq9FtunPLGTH274=-qjo4V7JgR0LG6pGJkyNpUAP5O-eM3w@mail.gmail.com>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
On Sat, Jan 27, 2018 at 01:03:57PM +0200, Janne Blomqvist wrote:
> On Sat, Jan 27, 2018 at 1:31 AM, Steve Kargl
> <sgk@troutmask.apl.washington.edu> wrote:
> > The attached patch implements a check for F2015:C830.
> > The wording of the F2008:C531 is nearly identical, but
> > the restriction on BLOCK is noted in the normative test.
> > The 3 lines in the new testcase show be sufficient to
> > see the issue. In regression testing, I needed to
> > adjust the regex pattern in a few existing test because
> > it seems my patch now catches the problem earlier.
> >
> > Regression tested on x86_64-*-freebsd. OK to commit?
>
> + /* F2015:C830 (R816) An explicit-shape-spec whose bounds are not
>
> This should be F2018:C830 (The wording of that constraint has not
> changed). The year of the standard has been changed to reflect the
> year when it's (expected to be) published. See the latest draft (N2146
> at the time of writing this) at https://wg5-fortran.org/ .
Whoops. I knew about the F2015->F2018 change. Simply slipped.
> Otherwise the patch is Ok. However, given that this is apparently
> something which has never worked and is thus not a regression, and
> we're in stage4(?), you might want to get approval from the release
> manager. IMHO, given that the patch itself is fairly simple and fixes
> an ICE, I support committing it for gcc-8.
Thanks. I'll ping Richard and Jakub.
--
Steve