This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Error on implicit function definition?
- To: martin at mira dot isdn dot cs dot tu-berlin dot de
- Subject: Re: Error on implicit function definition?
- From: Robert Krawitz <rlk at torrent dot com>
- Date: Wed, 28 Oct 1998 17:32:25 +0500
- Cc: egcs at cygnus dot com, randy at torrent dot com
Date: Wed, 28 Oct 1998 23:28:35 +0100
From: Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>
Cc: egcs@cygnus.com, randy@torrent.com
> No, it's not:
Yes, it is :-) (this appears to be fixed now)
Ah. Unfortunately, until the next egcs release rolls around, we won't
be able to take advantage of this :-(
mira% cat implicit.C
a()
{
foo();
}
mira% g++ -v
Reading specs from /usr/lib/gcc-lib/i486-pc-linux-gnu/egcs-2.92.15/specs
gcc version egcs-2.92.15 19981015 (gcc2 ss-980609 experimental)
mira% g++ -pedantic -c implicit.C
implicit.C: In function `int a()':
implicit.C:3: `foo' undeclared (first use this function)
implicit.C:3: (Each undeclared identifier is reported only once
implicit.C:3: for each function it appears in.)
implicit.C:4: warning: control reaches end of non-void function `a()'
mira% echo $status
1
--
Robert Krawitz <rlk@torrent.com> Founding Engineer
Torrent Systems Inc. 617-354-8484x104