This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] Merge status
Jason Merrill <email@example.com> writes:
> On Sun, 14 Mar 2004 11:26:12 -0500, Diego Novillo <firstname.lastname@example.org> wrote:
> > gcc doesn't work because of the cast-as-lvalue deprecation
> Perhaps we should rethink that deprecation; it sounds like there are a lot
> of other free software packages that are also breaking because of it.
I agree. It is very easy to write casts as lvalues, and for a long
time gcc didn't even warn about them. In looking through the mail
archives, I see cogent reasons for removing the extension for C++, but
no good reasons to remove it for C. As far as I know, the extension
is umabiguous in C, and is simply syntactic sugar.
As many have said, the current deprecation scheme, in which something
is deprecated in one release and then removed in the next, really
doesn't match the real world, in which people do not use every new gcc
release, but instead use a particular one for a few years and then
move to a much newer one.
So, I think that we should have an unconditional warning about
casts-as-lvalues in C for at least two major releases, preferably
three, before completely removing support for them.