projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b126e7c
)
(default_conversion): Undo last change.
author
Richard Stallman
<rms@gnu.org>
Fri, 30 Apr 1993 12:42:41 +0000
(12:42 +0000)
committer
Richard Stallman
<rms@gnu.org>
Fri, 30 Apr 1993 12:42:41 +0000
(12:42 +0000)
From-SVN: r4283
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 1ee45792c47672f9c97a58940e835bc5965c71ca..96c59ec68a8c1430a78ba966b9102e05ed26dbf3 100644
(file)
--- 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 e
xp
;
+ error ("invalid use of non-lvalue array");
+ return e
rror_mark_node
;
}
if (TYPE_READONLY (type) || TYPE_VOLATILE (type))