[PATCH] PR fortran/91802 -- rank+corank must be less than 16

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] PR fortran/91802 -- rank+corank must be less than 16

Steve Kargl
The attached patch has been tested on x86_64-*-freebsd.  OK to commit?

2019-09-24  Steven G. Kargl  <[hidden email]>

        PR fortran/91802
        * decl.c (attr_decl1): Check if rank+corank > 15.

2019-09-24  Steven G. Kargl  <[hidden email]>

        PR fortran/91802
        * gfortran.dg/pr91802.f90: New test.
--
Steve

pr91802.diff (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] PR fortran/91802 -- rank+corank must be less than 16

jerry DeLisle-3
On 9/28/19 10:11 AM, Steve Kargl wrote:
> Committed as r276254.
>

I am getting this:

gfc -c -fcoarray=single pr91802.f90
f951: internal compiler error: free_expr0(): Bad expr type
0x809fc9 gfc_report_diagnostic
        ../../trunk/gcc/fortran/error.c:776
0x80b62a gfc_internal_error(char const*, ...)
...

I will do a rebuild and rerun in case I missed something.

This is on x86_64-pc-linux-gnu.

Jerry
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] PR fortran/91802 -- rank+corank must be less than 16

Steve Kargl
On Sat, Sep 28, 2019 at 03:06:13PM -0700, Steve Kargl wrote:

> On Sat, Sep 28, 2019 at 01:13:42PM -0700, Jerry DeLisle wrote:
> > On 9/28/19 10:11 AM, Steve Kargl wrote:
> > > Committed as r276254.
> > >
> >
> > I am getting this:
> >
> > gfc -c -fcoarray=single pr91802.f90
> > f951: internal compiler error: free_expr0(): Bad expr type
> > 0x809fc9 gfc_report_diagnostic
> > ../../trunk/gcc/fortran/error.c:776
> > 0x80b62a gfc_internal_error(char const*, ...)
> > ...
> >
> > I will do a rebuild and rerun in case I missed something.
> >
>
> Bummer.  May be due to difference with --enable-checking.
>

Just bootstrapped trunk in an empty directory.  No issue.

If it persists for you, you can chnage the 'goto cleanup'
in the original patch to 'return m'.  gfortran is exiting,
so leaking memory isn't a concern.

--
Steve