This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-1.1.1 stuff


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]