IMA corner case with forward declarations of statics

Andrew Pinski apinski@apple.com
Fri Jun 25 04:35:00 GMT 2004


On Jun 24, 2004, at 9:22 PM, Dale Johannesen wrote:
> It is not "just for the sake of it", it is so that C programs which 
> have worked for
> the last 10 years or so will continue to work, only faster.
>
> I agree that a warning is a good idea, and I'm willing to believe an 
> error would
> be better in C++.

But C (the ISO standard) defines functions as having compatible types 
otherwise
it is undefined so having it an error by default and be able to turn it 
to warning is
okay in my book (something like -permissive in C++).

Andrew Pinski



More information about the Gcc mailing list