public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/44652]  New: Column numbers in error messages are wrong
@ 2010-06-24  8:29 hariharans at picochip dot com
  2010-06-24  8:30 ` [Bug preprocessor/44652] " hariharans at picochip dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: hariharans at picochip dot com @ 2010-06-24  8:29 UTC (permalink / raw)
  To: gcc-bugs

[-- 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


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-44652-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2021-09-02  2:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-24  8:29 [Bug preprocessor/44652] New: Column numbers in error messages are wrong hariharans at picochip dot com
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
     [not found] <bug-44652-4@http.gcc.gnu.org/bugzilla/>
2021-09-02  1:48 ` pinskia at gcc dot gnu.org
2021-09-02  1:52 ` pinskia at gcc dot gnu.org
2021-09-02  2:07 ` pinskia at gcc dot gnu.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).