(default_conversion): Undo last change.
authorRichard Stallman <rms@gnu.org>
Fri, 30 Apr 1993 12:42:41 +0000 (12:42 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 30 Apr 1993 12:42:41 +0000 (12:42 +0000)
From-SVN: r4283

gcc/c-typeck.c

index 1ee45792c47672f9c97a58940e835bc5965c71ca..96c59ec68a8c1430a78ba966b9102e05ed26dbf3 100644 (file)
@@ -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))