diff options
author | Mark Mitchell <mmitchell@usa.net> | 1998-04-17 00:47:20 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-04-16 20:47:20 -0400 |
commit | 2b6815eae26c4fb5853e2216d08bc725fe69fc1b (patch) | |
tree | 3549a03555e025947f081800de17ca07c6154dbe /gcc | |
parent | 0e05e8ea120730bbe3ff45c2f6b9a6172e469ae9 (diff) | |
download | gcc-2b6815eae26c4fb5853e2216d08bc725fe69fc1b.zip gcc-2b6815eae26c4fb5853e2216d08bc725fe69fc1b.tar.gz gcc-2b6815eae26c4fb5853e2216d08bc725fe69fc1b.tar.bz2 |
typeck2.c (process_init_constructor): Don't strip cv-qualifiers when doing initializations.
* typeck2.c (process_init_constructor): Don't strip cv-qualifiers
when doing initializations.
From-SVN: r19255
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/typeck2.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 94e4029..2aa936c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index c135537..e7afbcf 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -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))) |