Fix ICE on invalid input, and eliminate confusing error message.
authorJames E Wilson <wilson@specifixinc.com>
Fri, 10 Sep 2004 03:51:40 +0000 (03:51 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 10 Sep 2004 03:51:40 +0000 (20:51 -0700)
commit3274deff9fbb7530ef76ba973070d696696d20ec
tree1c4bb669ecba87bd3145ccb5f02df805439797e1
parent049e524f68be57df307f11ea9d3d28afdc37d7c3
Fix ICE on invalid input, and eliminate confusing error message.

* c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
before calling vector_types_convertible_p.
(digest_init): Check that inside_init has VECTOR_TYPE before calling
vector_types_convertible_p.  Don't give another error if
convert_for_assignment returns error_mark_node.

From-SVN: r87273
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/init-vec-1.c [new file with mode: 0644]