[Bug c++/59030] New: [4.9 Regression] Caret diagnostic always points to the first line

reichelt at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 6 20:19:00 GMT 2013


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
         ^
====================================================================



More information about the Gcc-bugs mailing list