https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60144
--- Comment #7 from dominiq at gcc dot gnu.org --- Author: dominiq Date: Wed May 1 17:40:22 2019 New Revision: 270776 URL: https://gcc.gnu.org/viewcvs?rev=270776&root=gcc&view=rev Log: 2019-05-01 Dominique d'Humieres <domi...@gcc.gnu.org> PR fortran/60144 * match.c (gfc_match_parens): Change the location for missing ')'. (gfc_match_if): Detect a missing '('. Remove the spurious named constant error. Change the wording of some errors. (gfc_match_else): Change the wording of an error. (gfc_match_elseif): Detect a missing '('. Improve the matching process to get a better syntax analysis. PR fortran/60144 * gfortran.dg/block_name_2.f90: Adjust dg-error. * gfortran.dg/dec_type_print_3.f90.f90: Likewise * gfortran.dg/pr60144.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/pr60144.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/match.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/block_name_2.f90 trunk/gcc/testsuite/gfortran.dg/dec_type_print_3.f90