This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1.1 stuff
- To: law at cygnus dot com
- Subject: Re: egcs-1.1.1 stuff
- From: Robert L Krawitz <rlk at tiac dot net>
- Date: Mon, 2 Nov 1998 10:42:56 -0500
- Cc: egcs at cygnus dot com
- References: <16229.909971624@hurl.cygnus.com>
> Date: Sun, 01 Nov 1998 18:53:44 -0700
> From: Jeffrey A Law <law@cygnus.com>
>
> I've put a pre-release of egcs-1.1.1 on the ftp server
> (pub/egcs/snapshots/1.1.1-prerelease).
This doesn't fix the problem with undeclared functions not signalling an
error:
$ cat > implicit.C
a()
{
foo();
}
$ /home/user1/egcs-1.1.1/bin/g++ -c -pedantic implicit.C
implicit.C: In function `int a()':
implicit.C:3: warning: implicit declaration of function `int foo(...)'
implicit.C:4: warning: control reaches end of non-void function `a()'
$ echo $?
0
This is actually quite important -- the C++ spec emphasizes that functions
must be explicitly declared, and this failure to flag an error causes us some
trouble with generated code that really does need to be flagged.
--
Robert Krawitz <rlk@tiac.net> http://www.tiac.net/users/rlk/
Tall Clubs International -- http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom -- mail lpf@uunet.uu.net
"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton