Hi Harald,

That looks good to me for all three branches.

Cheers

Paul


On Fri, 29 May 2020 at 23:00, Harald Anlauf <anl...@gmx.de> wrote:

> The initial attempt to fix this PR unfortunately produced a regression
> in the testsuite  that was overlooked.  The real fix is to apply this
> check in the appropriate place.
>
> Regtested on x86_64-pc-linux-gnu.  Really.
>
> OK for master and backports?
>
> Thanks,
> Harald
>
>
> PR fortran/95373 - ICE in build_reference_type, at tree.c:7942
>
> The use of KIND, LEN, RE, and IM inquiry references for applicable
> intrinsic
> types is valid only for suffienctly new Fortran standards.  Add appropriate
> checks in the appropriate place.
>
> 2020-05-28  Harald Anlauf  <anl...@gmx.de>
>
> gcc/fortran/
>         PR fortran/95373
>         * primary.c (is_inquiry_ref): Move validity check of inquiry
>         references against selected Fortran standard from here...
>         (gfc_match_varspec) ...to here.
>
> gcc/testsuite/
>         PR fortran/95373
>         * gfortran.dg/pr95373_1.f90: Adjust error messages.
>         * gfortran.dg/pr95373_2.f90: Adjust error message.
>


-- 
"If you can't explain it simply, you don't understand it well enough" -
Albert Einstein

Reply via email to