C++ extension "cast-as-lvalues": time to deprecate?
Gabriel Dos Reis
gdr@integrable-solutions.net
Fri May 9 12:41:00 GMT 2003
Fergus Henderson <fjh@cs.mu.OZ.AU> writes:
| On 09-May-2003, Joseph S. Myers <jsm28@cam.ac.uk> wrote:
| > On Fri, 9 May 2003, Fergus Henderson wrote:
| >
| > > Are you suggesting just deprecating it just in C++, or also in C?
| > >
| > > I would prefer that it not be deprecated.
| > > The reason is that this is a useful extension in C
| >
| > I would like it deprecated in C. There is an excessive amount of
| > complicated code in the C front end to implement this extension, it
| > creates lvalues whose address cannot be taken,
|
| C already has lvalues whose address cannot be taken: registers.
That is not a sufficient reason to keep this extension which is causing
many griefs.
-- Gaby
More information about the Gcc
mailing list