This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Really crummy error messages, was Re: Ada files now checked in


On Sun, Oct 07, 2001 at 05:35:47PM -0400, Phil Edwards wrote:
> 
>     j.c:1: `asdf' undeclared (first use in this function)
>     j.c:1: `asdf' undeclared (first time used in this function)
>     j.c:1: `asdf' undeclared (first occurrence in this function)
> 
> (Although maybe "is undeclared" would be better for C than "is undefined.")
> 
> Please, let's fix this.

Hmm...

$ cat >test.c
int foo() { baz; }
$ gcc test.c
test.c: In function `foo':
test.c:1: `baz' undeclared (first use in this function)
test.c:1: (Each undeclared identifier is reported only once
test.c:1: for each function it appears in.)
$

Where is this "first use this function" coming from?

While we're bitching, I am sick of seeing

test.c:1: (Each undeclared identifier is reported only once
test.c:1: for each function it appears in.)

I think the error message is perfectly clear without that.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]