Commit 02601a5c by Joseph Myers Committed by Joseph Myers

* doc/extend.texi: Deprecate casts as lvalues.

From-SVN: r72723
parent beca20d2
2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
* doc/extend.texi: Deprecate casts as lvalues.
2003-10-20 Jan Hubicka <jh@suse.cz> 2003-10-20 Jan Hubicka <jh@suse.cz>
* toplev.c (rest_of_compilation): Fix webizer pass ordering. * toplev.c (rest_of_compilation): Fix webizer pass ordering.
......
...@@ -1101,7 +1101,8 @@ expressions are equivalent: ...@@ -1101,7 +1101,8 @@ expressions are equivalent:
(a ? b = 5 : (c = 5)) (a ? b = 5 : (c = 5))
@end example @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 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 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 inner left-hand side expression. After this is stored, the value is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment