]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix ICE and clear incorrect error messages [PR114739]
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 6 May 2024 07:21:14 +0000 (08:21 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 6 May 2024 07:21:14 +0000 (08:21 +0100)
commit094f8a36dffea52fe6a64596203b82648a3f6121
tree0efafd48c5b8d048161068adab62c03ad6137986
parent991f8657340f9fad9c40b1913bce0fdde36cd977
Fortran: Fix ICE and clear incorrect error messages [PR114739]

2024-05-06  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/114739
* primary.cc (gfc_match_varspec): Check for default type before
checking for derived types with the right component name.

gcc/testsuite/
PR fortran/114739
* gfortran.dg/pr114739.f90: New test.
* gfortran.dg/derived_comp_array_ref_8.f90: Add 'implicit none'
for consistency with expected error message.
* gfortran.dg/nullify_4.f90: ditto
* gfortran.dg/pointer_init_6.f90: ditto
* gfortran.dg/pr107397.f90: ditto
* gfortran.dg/pr88138.f90: ditto
gcc/fortran/primary.cc
gcc/testsuite/gfortran.dg/derived_comp_array_ref_8.f90
gcc/testsuite/gfortran.dg/nullify_4.f90
gcc/testsuite/gfortran.dg/pointer_init_6.f90
gcc/testsuite/gfortran.dg/pr107397.f90
gcc/testsuite/gfortran.dg/pr114739.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr88138.f90