summaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-12 19:58:37 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-12 19:58:37 +0000
commitf00901ab755b416e24c44fc404d1e4162daa5ff5 (patch)
treea7715d4cf8d175e1f57f35aadc90a8ac4057bfdc /gcc/cp/call.c
parent2bc64004224123a8b204d5562368acdb78983c2c (diff)
downloadgcc-f00901ab755b416e24c44fc404d1e4162daa5ff5.tar.gz
* call.c (type_decays_to): Call cv_unqualified for non-class type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158240 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 5a32b3b67d9..1ed320cc03a 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -2263,6 +2263,8 @@ type_decays_to (tree type)
return build_pointer_type (TREE_TYPE (type));
if (TREE_CODE (type) == FUNCTION_TYPE)
return build_pointer_type (type);
+ if (!CLASS_TYPE_P (type))
+ type = cv_unqualified (type);
return type;
}