diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-11 03:29:07 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-11 03:29:07 +0000 |
commit | 9c4b42a56fddaac9733c74076a3b318bc2ad6161 (patch) | |
tree | efc52425613ba96343a5e518ede1c52e88b645b0 /gcc/convert.c | |
parent | fe9b47ebb74235f2b3230a72962e31de86ba08f5 (diff) | |
download | gcc-9c4b42a56fddaac9733c74076a3b318bc2ad6161.tar.gz |
Fix excess errors problem for invalid vector testcase.
* convert.c (convert_to_vector): Replace recursive call with
error_mark_node.
* gcc.dg/convert-vec-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87340 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index ceefbf24906..36bae1c7793 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -761,6 +761,6 @@ convert_to_vector (tree type, tree expr) default: error ("can't convert value to a vector"); - return convert_to_vector (type, integer_zero_node); + return error_mark_node; } } |