This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: typedef vs. typename confusion
Jason Merrill wrote:
>
> >>>>> Noel Yap <nyap@garban.com> writes:
>
> > Joe Buck wrote:
> >> Rigorous enforcement of the "typename" rule will break a lot of old code.
>
> > If this is so, then a compiler switch should be provided to emulate the
> > older behaviour. The default should anally conform to the standard.
>
> If you want an anal-retentive compiler, feel free to use -pedantic, don't
> try to impose it on others.
I think it's the other way around. Why allow people to unknowingly
write sloppy code. If they want to write non-compliant code, they
should know it's non-compliant and, therefore, should be the ones to
specify a flag.
Noel