This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28866] New: [Regression] Simple if statements are not so simple
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2006 22:43:22 -0000
- Subject: [Bug fortran/28866] New: [Regression] Simple if statements are not so simple
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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 <kargls@comcast.net>
! 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