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 c++/59030] New: [4.9 Regression] Caret diagnostic always points to the first line


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

            Bug ID: 59030
           Summary: [4.9 Regression] Caret diagnostic always points to the
                    first line
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org

With today's trunk (4.9.0 20131106) the caret diagnostic always points to the
first line, although the line number is correct. 

======================
// First line

int i = 0;

int j = ;
======================

The above invalid code snippet produces the error message:

====================================================================
bug.cc:5:9: error: expected primary-expression before ';' token
 // First line
         ^
====================================================================


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