[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About column numbers

From: Yuri Khan
Subject: Re: About column numbers
Date: Thu, 31 Mar 2016 00:37:52 +0600

On Thu, Mar 31, 2016 at 12:18 AM, Andreas Schwab <address@hidden> wrote:

>> Lines are a different beast — you have to be compatible with the
>> convention compilers use to report errors, and pretty much all of them
>> count lines from 1.
> They also count columns from 1.

At least GCC doesn’t. It counts bytes. Perhaps that’s a bug.

$ cat test1.c

$ gcc test1.c
test1.c:1:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
at end of input

reply via email to

[Prev in Thread] Current Thread [Next in Thread]