* typeck2.c (digest_init): Do handle values of vector type.

From-SVN: r49736
This commit is contained in:
Jason Merrill 2002-02-13 12:32:24 -05:00 committed by Jason Merrill
parent 1eca751e4b
commit bb26522d7b
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2002-02-13 Jason Merrill <jason@redhat.com>
* typeck2.c (digest_init): Do handle values of vector type.
* typeck2.c (digest_init, process_init_constructor): Treat vectors
like arrays.

View File

@ -598,7 +598,7 @@ digest_init (type, init, tail)
return process_init_constructor (type, 0, tail);
}
if (CLASS_TYPE_P (type))
if (code != ARRAY_TYPE)
{
int flags = LOOKUP_NORMAL;
/* Initialization from { } is copy-initialization. */