From 8efabd131fd35d9fc2b9b8480809415d7903319e Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 30 Apr 1993 12:42:41 +0000 Subject: [PATCH] (default_conversion): Undo last change. From-SVN: r4283 --- gcc/c-typeck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.30.2