From bb26522d7b2f23490177d58325aacd1ef9ebea7c Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 13 Feb 2002 12:32:24 -0500 Subject: [PATCH] * typeck2.c (digest_init): Do handle values of vector type. From-SVN: r49736 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/typeck2.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 3ee3f76749a..82f6458ca44 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2002-02-13 Jason Merrill + * typeck2.c (digest_init): Do handle values of vector type. + * typeck2.c (digest_init, process_init_constructor): Treat vectors like arrays. diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index 1ade13ce9e9..48caade430c 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -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. */ -- 2.30.2