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 via email to