OSDN Git Service

* typeck2.c (process_init_constructor): Don't strip cv-qualifiers
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Apr 1998 00:47:20 +0000 (00:47 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Apr 1998 00:47:20 +0000 (00:47 +0000)
when doing initializations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19255 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 94e4029..2aa936c 100644 (file)
@@ -1,3 +1,8 @@
+Fri Apr 17 00:45:12 1998  Mark Mitchell  <mmitchell@usa.net>
+
+       * typeck2.c (process_init_constructor): Don't strip cv-qualifiers
+       when doing initializations.
+
 Fri Apr 17 00:24:22 1998  Jason Merrill  <jason@yorick.cygnus.com>
 
        * decl.c (duplicate_decls): Fix check for when it's safe to free
index c135537..e7afbcf 100644 (file)
@@ -967,7 +967,7 @@ process_init_constructor (type, init, elts)
          if (TREE_VALUE (tail) != 0)
            {
              tree tail1 = tail;
-             next1 = digest_init (TYPE_MAIN_VARIANT (TREE_TYPE (type)),
+             next1 = digest_init (TREE_TYPE (type),
                                   TREE_VALUE (tail), &tail1);
              if (TYPE_NEEDS_CONSTRUCTING (TREE_TYPE (type))
                  && TYPE_MAIN_VARIANT (TREE_TYPE (type)) != TYPE_MAIN_VARIANT (TREE_TYPE (next1)))