OSDN Git Service

* typeck2.c (digest_init): Do handle values of vector type.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Feb 2002 17:32:24 +0000 (17:32 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Feb 2002 17:32:24 +0000 (17:32 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49736 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/typeck2.c

index 3ee3f76..82f6458 100644 (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.
 
index 1ade13c..48caade 100644 (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.  */