OSDN Git Service

Fix ICE on invalid input, and eliminate confusing error message.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Sep 2004 03:51:40 +0000 (03:51 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Sep 2004 03:51:40 +0000 (03:51 +0000)
commit0d45e76fb41a38b250f23b00eaff8133e1564d11
tree1c4bb669ecba87bd3145ccb5f02df805439797e1
parent80db63ef7d714135955f070c0d90fdc369aa21d7
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87273 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/init-vec-1.c [new file with mode: 0644]