public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28866]  New: [Regression] Simple if statements are not so simple
@ 2006-08-27 22:43 kargl at gcc dot gnu dot org
  2006-08-27 22:45 ` [Bug fortran/28866] " kargl at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-08-27 22:43 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/28866] [Regression] Simple if statements are not so simple
  2006-08-27 22:43 [Bug fortran/28866] New: [Regression] Simple if statements are not so simple kargl at gcc dot gnu dot org
@ 2006-08-27 22:45 ` kargl at gcc dot gnu dot org
  2006-08-28 17:55 ` kargl at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-08-27 22:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from kargl at gcc dot gnu dot org  2006-08-27 22:44 -------
Since I have a patch, I might as well confirm the bug.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-08-27 22:44:57
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28866


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/28866] [Regression] Simple if statements are not so simple
  2006-08-27 22:43 [Bug fortran/28866] New: [Regression] Simple if statements are not so simple kargl at gcc dot gnu dot org
  2006-08-27 22:45 ` [Bug fortran/28866] " kargl at gcc dot gnu dot org
@ 2006-08-28 17:55 ` kargl at gcc dot gnu dot org
  2006-08-29 19:47 ` kargl at gcc dot gnu dot org
  2006-08-29 19:49 ` kargl at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-08-28 17:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kargl at gcc dot gnu dot org  2006-08-28 17:55 -------
*** Bug 28874 has been marked as a duplicate of this bug. ***


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |drewmccormack at mac dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28866


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/28866] [Regression] Simple if statements are not so simple
  2006-08-27 22:43 [Bug fortran/28866] New: [Regression] Simple if statements are not so simple kargl at gcc dot gnu dot org
  2006-08-27 22:45 ` [Bug fortran/28866] " kargl at gcc dot gnu dot org
  2006-08-28 17:55 ` kargl at gcc dot gnu dot org
@ 2006-08-29 19:47 ` kargl at gcc dot gnu dot org
  2006-08-29 19:49 ` kargl at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-08-29 19:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kargl at gcc dot gnu dot org  2006-08-29 19:47 -------
Subject: Bug 28866

Author: kargl
Date: Tue Aug 29 19:47:31 2006
New Revision: 116570

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116570
Log:
2006-08-29  Steven G. Kargl  <kargls@comcast.net>

        PR fortran/28866
        * match.c: Wrap copyright.
        (gfc_match_assignment):  Return MATCH_NO for failed lvalue.  Remove
        gotos.  Move error handling of FL_PARAMETER to ...
        * gfc_match_if: Deal with MATCH_NO from above.
        * primary.c: Wrap copyright.
        (match_variable): ... here.  Improve error messages.


2006-08-29  Steven G. Kargl  <kargls@comcast.net>

        PR fortran/28866
        * gfortran.dg/simpleif_2.f90: New test.
        * gfortran.dg/pr19936_1.f90: Adjust dg-error message.
        * gfortran.dg/enum_5.f90: Ditto.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/match.c
    trunk/gcc/fortran/primary.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/enum_5.f90
    trunk/gcc/testsuite/gfortran.dg/pr19936_1.f90
    trunk/gcc/testsuite/gfortran.dg/simpleif_2.f90


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28866


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/28866] [Regression] Simple if statements are not so simple
  2006-08-27 22:43 [Bug fortran/28866] New: [Regression] Simple if statements are not so simple kargl at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-08-29 19:47 ` kargl at gcc dot gnu dot org
@ 2006-08-29 19:49 ` kargl at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-08-29 19:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from kargl at gcc dot gnu dot org  2006-08-29 19:49 -------
Patch committed.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28866


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-29 19:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-27 22:43 [Bug fortran/28866] New: [Regression] Simple if statements are not so simple kargl at gcc dot gnu dot org
2006-08-27 22:45 ` [Bug fortran/28866] " kargl at gcc dot gnu dot org
2006-08-28 17:55 ` kargl at gcc dot gnu dot org
2006-08-29 19:47 ` kargl at gcc dot gnu dot org
2006-08-29 19:49 ` kargl at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).