]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/call.c
c++: ICE when building builtin operator->* set [PR103455]
[thirdparty/gcc.git] / gcc / cp / call.c
index f8e9de8b17f7a1836214c963c0b5d34d2b109636..9745b484a0e844838222a3133dc6330a195c662f 100644 (file)
@@ -2684,7 +2684,7 @@ add_builtin_candidate (struct z_candidate **candidates, enum tree_code code,
          tree c1 = TREE_TYPE (type1);
          tree c2 = TYPE_PTRMEM_CLASS_TYPE (type2);
 
-         if (MAYBE_CLASS_TYPE_P (c1) && DERIVED_FROM_P (c2, c1)
+         if (CLASS_TYPE_P (c1) && DERIVED_FROM_P (c2, c1)
              && (TYPE_PTRMEMFUNC_P (type2)
                  || is_complete (TYPE_PTRMEM_POINTED_TO_TYPE (type2))))
            break;