This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59030] New: [4.9 Regression] Caret diagnostic always points to the first line
- From: "reichelt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 06 Nov 2013 20:17:19 +0000
- Subject: [Bug c++/59030] New: [4.9 Regression] Caret diagnostic always points to the first line
- Auto-submitted: auto-generated
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
^
====================================================================