This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/59764] New: Read logicals, line buffer, item_count, and error message consistancy


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

            Bug ID: 59764
           Summary: Read logicals, line buffer, item_count, and error
                    message consistancy
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jvdelisle at gcc dot gnu.org

The itemc-count variable is used for two purposes, keep track of items in a
read cycle and as a pointer into a look-ahead line buffer when reading
logicals.  Some of the error messages for bad logicals need to be revised to
reflect what the value means. It is the position with the line where the error
was found and not the sequence number of the item in the READ list.

Consider separating these uses of the item_count variable so they do not
collide when reading logicals.

See pr59700 for related test cases.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]