OSDN Git Service

* call.c (type_decays_to): Call cv_unqualified for non-class type.
[pf3gnuchains/gcc-fork.git] / gcc / cp / call.c
index 2dc73f5..632dd31 100644 (file)
@@ -2249,7 +2249,7 @@ type_decays_to (tree type)
     return build_pointer_type (TREE_TYPE (type));
   if (TREE_CODE (type) == FUNCTION_TYPE)
     return build_pointer_type (type);
-  if (!MAYBE_CLASS_TYPE_P (type))
+  if (!CLASS_TYPE_P (type))
     type = cv_unqualified (type);
   return type;
 }