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
  2005-04-21  5:03 ` [Bug c++/17964] [4.0/4.1 Regression] " mmitchel at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ 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] 15+ messages in thread

end of thread, other threads:[~2005-11-04  4:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-17964-1447@http.gcc.gnu.org/bugzilla/>
2005-10-13 20:57 ` [Bug c++/17964] [4.0/4.1 Regression] cpp error messages contain wrong line in C++ pinskia at gcc dot gnu dot org
2005-10-27 20:34 ` pinskia at gcc dot gnu dot org
2005-10-31  0:40 ` mmitchel at gcc dot gnu dot org
2005-10-31  1:16 ` joseph at codesourcery dot com
2005-11-01 20:03 ` jsm28 at gcc dot gnu dot org
2005-11-02 21:04 ` mrs at apple dot com
2005-11-03  0:31 ` pinskia at gcc dot gnu dot org
2005-11-03  7:01 ` mmitchel at gcc dot gnu dot org
2005-11-03 23:08 ` jsm28 at gcc dot gnu dot org
2005-11-04  1:24 ` jsm28 at gcc dot gnu dot org
2005-11-04  4:50 ` pinskia at gcc dot gnu dot org
2004-10-13  0:54 [Bug c++/17964] New: " mrs at apple dot com
2005-04-21  5:03 ` [Bug c++/17964] [4.0/4.1 Regression] " 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).