This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Really crummy error messages
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: Really crummy error messages
- From: Florian Weimer <fw at deneb dot enyo dot de>
- Date: Mon, 08 Oct 2001 08:22:21 +0200
- Cc: gcc at gcc dot gnu dot org
- References: <20011007173547.A15654@disaster.jaj.com>
Phil Edwards <pedwards@disaster.jaj.com> writes:
> For "first use this function" to be a correct English sentence [fragment],
> there is only one possible parse, and it's not what is intended. "First use
> this function" is an /imperative/ with "use" as a verb (pronounced with a 'z'
> sound), and always leaves new users wondering, "first use /which/ function?"
I think this error message is dating back to the old K&R
prototype-less days, when you declared functions implicitly by
calling ("using") them. After a call such as "foo()", you can take
the address of the function by just writing "foo" (without further
declarations).
At least that's my guess. In any case, the error message is really
misleading, close to "tagged type must be declared at library
level". ;-)