Error on implicit function definition?
Martin von Loewis
martin@mira.isdn.cs.tu-berlin.de
Wed Oct 28 18:51:00 GMT 1998
> No, it's not:
Yes, it is :-) (this appears to be fixed now)
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
Regards,
Martin
More information about the Gcc
mailing list