From: Richard Stallman Date: Fri, 30 Apr 1993 12:42:41 +0000 (+0000) Subject: (default_conversion): Undo last change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8efabd131fd35d9fc2b9b8480809415d7903319e;p=gcc.git (default_conversion): Undo last change. From-SVN: r4283 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 1ee45792c47..96c59ec68a8 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -986,8 +986,8 @@ default_conversion (exp) if (!lvalue_p (exp) && ! (TREE_CODE (exp) == CONSTRUCTOR && TREE_STATIC (exp))) { - /* Non-lvalue arrays do not decay into pointers. */ - return exp; + error ("invalid use of non-lvalue array"); + return error_mark_node; } if (TYPE_READONLY (type) || TYPE_VOLATILE (type))