diff options
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 2 |
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; } |