OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR c++/34180
[pf3gnuchains/gcc-fork.git]
/
gcc
/
cp
/
method.c
diff --git
a/gcc/cp/method.c
b/gcc/cp/method.c
index
f13d99d
..
47f9e42
100644
(file)
--- a/
gcc/cp/method.c
+++ b/
gcc/cp/method.c
@@
-622,6
+622,7
@@
do_build_copy_constructor (tree fndecl)
if (DECL_MUTABLE_P (field))
quals &= ~TYPE_QUAL_CONST;
+ quals |= TYPE_QUALS (expr_type);
expr_type = cp_build_qualified_type (expr_type, quals);
}