[Bug c++/17964] New: cpp error messages contain wrong line in C++
mrs at apple dot com
gcc-bugzilla@gcc.gnu.org
Wed Oct 13 00:54:00 GMT 2004
The below testcase recently broke for C++.
char *p = "\q"; /* { dg-error "unknown escape" } */
int i;
The problem is the line numbers for cpp_error
come out as the last line number in the source file.
we currently see:
t.cc:2:1: warning: unknown escape sequence '\q'
instead of:
t.cc:1:11: warning: unknown escape sequence '\q'
(which is what we see in C).
--
Summary: cpp error messages contain wrong line in C++
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P1
Component: c++
AssignedTo: zack at codesourcery dot com
ReportedBy: mrs at apple dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: powerpc-apple-darwin7.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17964
More information about the Gcc-bugs
mailing list