The following program fails to compile because the commit noted in the comment broke the processing of a chain of matchers.
! { dg-do compile } ! Test fix for regression caused by ! 2006-06-23 Steven G. Kargl <[EMAIL PROTECTED]> ! PR fortran/27981 ! * match.c (gfc_match_if): Handle errors in assignment in simple if. ! module read integer i, j, k contains subroutine a if (i .eq. 0) read(j,*) k end subroutine a end module read I'm currently testing a patch to fix the problem. Note, this effects only 4.2. -- Summary: [Regression] Simple if statements are not so simple Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: kargl at gcc dot gnu dot org ReportedBy: kargl at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28866