This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Really crummy error messages, was Re: Ada files now checked in
- To: Zack Weinberg <zack at codesourcery dot com>
- Subject: Re: Really crummy error messages, was Re: Ada files now checked in
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Mon, 8 Oct 2001 16:32:25 -0400
- Cc: Gabriel Dos Reis <gdr at codesourcery dot com>, dewar at gnat dot com, fw at deneb dot enyo dot de, bosch at gnat dot com, dnovillo at redhat dot com, gcc at gcc dot gnu dot org, kenner at vlsi1 dot ultra dot nyu dot edu
- References: <20011007173547.A15654@disaster.jaj.com> <20011008110903.E9432@codesourcery.com>
On Mon, Oct 08, 2001 at 11:09:03AM -0700, Zack Weinberg wrote:
> $ 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?
cp/lex.c, around line 1290.
> 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.
I'd agree with this too. Maybe GCC should have a beginner's mode? :-)
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams