diff options
author | Jason Merrill <jason@redhat.com> | 2002-02-13 12:32:24 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2002-02-13 12:32:24 -0500 |
commit | bb26522d7b2f23490177d58325aacd1ef9ebea7c (patch) | |
tree | 068794708634ec760bcf05ec31b20c4278fe2888 | |
parent | 1eca751e4b101e72ceff75795e8eea74dd514717 (diff) | |
download | gcc-bb26522d7b2f23490177d58325aacd1ef9ebea7c.zip gcc-bb26522d7b2f23490177d58325aacd1ef9ebea7c.tar.gz gcc-bb26522d7b2f23490177d58325aacd1ef9ebea7c.tar.bz2 |
* typeck2.c (digest_init): Do handle values of vector type.
From-SVN: r49736
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/typeck2.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 3ee3f76..82f6458 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index 1ade13c..48caade 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. */ |