Commit 8efabd13 by Richard Stallman

(default_conversion): Undo last change.

From-SVN: r4283
parent b126e7ce
...@@ -986,8 +986,8 @@ default_conversion (exp) ...@@ -986,8 +986,8 @@ default_conversion (exp)
if (!lvalue_p (exp) if (!lvalue_p (exp)
&& ! (TREE_CODE (exp) == CONSTRUCTOR && TREE_STATIC (exp))) && ! (TREE_CODE (exp) == CONSTRUCTOR && TREE_STATIC (exp)))
{ {
/* Non-lvalue arrays do not decay into pointers. */ error ("invalid use of non-lvalue array");
return exp; return error_mark_node;
} }
if (TYPE_READONLY (type) || TYPE_VOLATILE (type)) if (TYPE_READONLY (type) || TYPE_VOLATILE (type))
......
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