public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17964] New: cpp error messages contain wrong line in C++
@ 2004-10-13  0:54 mrs at apple dot com
  2004-10-13  0:56 ` [Bug c++/17964] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mrs at apple dot com @ 2004-10-13  0:54 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-09-27 16:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-13  0:54 [Bug c++/17964] New: cpp error messages contain wrong line in C++ mrs at apple dot com
2004-10-13  0:56 ` [Bug c++/17964] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-13  1:43 ` bangerth at dealii dot org
2005-01-25 19:15 ` pinskia at gcc dot gnu dot org
2005-02-09  9:27 ` zack at codesourcery dot com
2005-04-21  5:03 ` [Bug c++/17964] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2005-07-05  2:14 ` pinskia at gcc dot gnu dot org
2005-07-08  1:43 ` mmitchel at gcc dot gnu dot org
2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).