C++ extension "cast-as-lvalues": time to deprecate?

Fergus Henderson fjh@cs.mu.OZ.AU
Fri May 9 14:06:00 GMT 2003


On 09-May-2003, Giovanni Bajo <giovannibajo@libero.it> wrote:
> Fergus Henderson <fjh@cs.mu.OZ.AU> wrote:
> 
> > Are you suggesting just deprecating it just in C++, or also in C?
> 
> I don't have any strong opinion.

According to the GCC manual, this extension is *already* deprecated in C++.

	"Standard C++ allows compound expressions and conditional
	expressions as lvalues, and permits casts to reference type,
	so use of this extension is deprecated for C++ code."

(This is from <http://gcc.gnu.org/onlinedocs/gcc/Lvalues.html#Lvalues>.)

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.



More information about the Gcc mailing list