diff options
Diffstat (limited to 'gcc/cp/decl2.cc')
-rw-r--r-- | gcc/cp/decl2.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/cp/decl2.cc b/gcc/cp/decl2.cc index 7890833..c6bfcfe 100644 --- a/gcc/cp/decl2.cc +++ b/gcc/cp/decl2.cc @@ -1540,14 +1540,6 @@ cp_omp_mappable_type_1 (tree type, bool notes) /* Arrays have mappable type if the elements have mappable type. */ while (TREE_CODE (type) == ARRAY_TYPE) type = TREE_TYPE (type); - /* A mappable type cannot contain virtual members. */ - if (CLASS_TYPE_P (type) && CLASSTYPE_VTABLES (type)) - { - if (notes) - inform (DECL_SOURCE_LOCATION (TYPE_MAIN_DECL (type)), - "type %qT with virtual members is not mappable", type); - result = false; - } /* All data members must be non-static. */ if (CLASS_TYPE_P (type)) { |