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