From 02601a5c5a49dfd20f2e34a146fc7b3cc6d3f0df Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 20 Oct 2003 22:52:37 +0100 Subject: [PATCH] * doc/extend.texi: Deprecate casts as lvalues. From-SVN: r72723 --- gcc/ChangeLog | 4 ++++ gcc/doc/extend.texi | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2d59559816a..bbd5afa063a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-10-20 Joseph S. Myers + + * doc/extend.texi: Deprecate casts as lvalues. + 2003-10-20 Jan Hubicka * toplev.c (rest_of_compilation): Fix webizer pass ordering. diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 9d19516bc1b..1d2274fe4f7 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -1101,7 +1101,8 @@ expressions are equivalent: (a ? b = 5 : (c = 5)) @end example -A cast is a valid lvalue if its operand is an lvalue. A simple +A cast is a valid lvalue if its operand is an lvalue. This extension +is deprecated. A simple assignment whose left-hand side is a cast works by converting the right-hand side first to the specified type, then to the type of the inner left-hand side expression. After this is stored, the value is -- 2.30.2