This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [tree-ssa] Merge status


Jason Merrill <jason@redhat.com> writes:

> On Sun, 14 Mar 2004 11:26:12 -0500, Diego Novillo <dnovillo@redhat.com> 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.

Ian


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