]> gcc.gnu.org Git - gcc.git/commit
PR fortran/95373 - ICE in build_reference_type, at tree.c:7942
authorHarald Anlauf <anlauf@gmx.de>
Sat, 30 May 2020 18:59:41 +0000 (20:59 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 5 Jun 2020 21:04:32 +0000 (23:04 +0200)
commitd82e9d37d843539127df59d7b8894e5e3baec9b9
treeb83b503ddfce8fef2e1aee61572097d3bc339091
parent2039ad0eb5261a2e7eb1d3c9da7576a5c370c073
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-30  Harald Anlauf  <anlauf@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.

(cherry picked from commit dd38c765a04d06c775134a135f68b18c3b7c9c78)
gcc/fortran/primary.c
gcc/testsuite/gfortran.dg/pr95373_1.f90
gcc/testsuite/gfortran.dg/pr95373_2.f90
This page took 0.067049 seconds and 5 git commands to generate.