diff options
author | Jason Merrill <jason@redhat.com> | 2011-06-23 22:18:42 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-06-23 22:18:42 -0400 |
commit | 908e152c84b2f3f97f0b5d316e9402aeeeef2b76 (patch) | |
tree | cf5bb3999e4c3ff8784a28abdbdd8e586a928d10 /gcc/cp/init.c | |
parent | cb77790aafc1ce69fd150e8009eadefe54557c69 (diff) | |
download | gcc-908e152c84b2f3f97f0b5d316e9402aeeeef2b76.zip gcc-908e152c84b2f3f97f0b5d316e9402aeeeef2b76.tar.gz gcc-908e152c84b2f3f97f0b5d316e9402aeeeef2b76.tar.bz2 |
re PR c++/49418 (G++ discards cv-quals from template parameter types)
PR c++/49418
* typeck2.c (build_functional_cast): Strip cv-quals for value init.
* init.c (build_zero_init_1): Not here.
From-SVN: r175368
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 62b68f2..3c347a4 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -176,7 +176,7 @@ build_zero_init_1 (tree type, tree nelts, bool static_storage_p, initialized are initialized to zero. */ ; else if (SCALAR_TYPE_P (type)) - init = convert (cv_unqualified (type), integer_zero_node); + init = convert (type, integer_zero_node); else if (CLASS_TYPE_P (type)) { tree field; |