typedef vs. typename confusion
Jason Merrill
jason@cygnus.com
Thu Aug 6 14:31:00 GMT 1998
>>>>> Joe Buck <jbuck@Synopsys.COM> writes:
>> People should be able to specify a flag to compile older code. Did the
>> original compilers default to C behaviour (ie allowing use of
>> non-declared functions or assuming int when no type is specified)? I
>> don't think so, the compilers forced people to update their code, or
>> they supplied a switch that would allow older behaviour.
> Guess what g++ does? It allows use of non-declared functions, assuming
> int, and gives a warning. I think that it is time for this to go away,
> because it is now more trouble than it's worth
How so? There are still C libraries that people want to use with sloppy
declarations in the headers. I don't think this particular extension is
problematic.
> gcc has around a million users. You are one user. Your personal needs
> can be satisfied with "-pedantic" (at least, they could be if -pedantic
> were fixed).
Fixed?
Jason
More information about the Gcc
mailing list