summaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-07 01:17:36 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-07 01:17:36 +0000
commit20df84a7e74cda0d2289c283c4f8657be4b4181f (patch)
tree07544a45ab0eb9afacf5d906999bca0ad75200b1 /gcc/cp/tree.c
parenta6ae2cf4cfdd79b97135c3905a5e39df2ef67cd3 (diff)
downloadgcc-20df84a7e74cda0d2289c283c4f8657be4b4181f.tar.gz
PR c++/57825
* tree.c (strip_typedefs) [METHOD_TYPE]: Preserve ref-qualifier. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201550 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index f8b4bbce822..63ec7fa7266 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -1236,6 +1236,8 @@ strip_typedefs (tree t)
result =
build_method_type_directly (class_type, type,
TREE_CHAIN (arg_types));
+ result
+ = build_ref_qualified_type (result, type_memfn_rqual (t));
}
else
{