public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hariharans at picochip dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/44652]  New: Column numbers in error messages are wrong
Date: Thu, 24 Jun 2010 08:29:00 -0000	[thread overview]
Message-ID: <bug-44652-15241@http.gcc.gnu.org/bugzilla/> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]

If i compile the attached args.c, i get the following errror message in
mainline GCC.

In file included from args.c:2:0:
structdef.h:5:3: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before
‘unsigned’

Note that it says args.c:2:0. We used to use GCC 4.3.2, which used to only say
args.c:2. The extra ":0", which is supposed to represent column number, is just
wrong. In the attached test, the actual column number is "3". I am happy for
the compiler to not give any column number, but giving the wrong column number
looks wrong.

I saw this in picochip code, but i am guessing this is not specific to
picochip. Please let me know if you need any more information. Thanks


-- 
           Summary: Column numbers in error messages are wrong
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hariharans at picochip dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: picochip-unknown-none


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44652


             reply	other threads:[~2010-06-24  8:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24  8:29 hariharans at picochip dot com [this message]
2010-06-24  8:30 ` [Bug preprocessor/44652] " hariharans at picochip dot com
2010-06-24  8:31 ` hariharans at picochip dot com
2010-06-24  8:34 ` pinskia at gcc dot gnu dot org
2010-06-24 12:03 ` manu at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-44652-15241@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).