https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128734
--- Comment #3 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
this patch fixes the immediate issue:
diff --git a/gcc/cp/cp-objcp-common.cc b/gcc/cp/cp-objcp-common.cc
index 8af1446cc9d..19ee211e248 100644
--- a/gcc/cp/cp-objcp-common.cc
+++ b/gcc/cp/cp-objcp-common.cc
@@ -745,11 +745,4 @@ cp_handle_option (size_t scode, const char *arg,
HOST_WIDE_INT value,
return c_common_handle_option (scode, arg, value, kind, loc, handlers);
}
-/* Like cp_type_quals, but returns a qualifier set. Will become unnecessary
- once the C++ FE supports named address spaces. */
-
-qualifier_set
-cp_type_quals_as_set (const_tree type)
-{ return { cp_type_quals (type) }; }
-
#include "gt-cp-cp-objcp-common.h"
diff --git a/gcc/cp/cp-objcp-common.h b/gcc/cp/cp-objcp-common.h
index acd6f97ac5e..bd4d16751ee 100644
--- a/gcc/cp/cp-objcp-common.h
+++ b/gcc/cp/cp-objcp-common.h
@@ -42,7 +42,6 @@ extern tree cxx_simulate_enum_decl (location_t, const char *,
vec<string_int_pair> *);
extern tree cxx_simulate_record_decl (location_t, const char *,
array_slice<const tree>);
-extern qualifier_set cp_type_quals_as_set (const_tree type);
/* Lang hooks that are shared between C++ and ObjC++ are defined here. Hooks
specific to C++ or ObjC++ go in cp/cp-lang.cc and objcp/objcp-lang.cc,
@@ -142,8 +141,6 @@ static const scoped_attribute_specs *const
cp_objcp_attribute_table[] =
#define LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P cp_var_mod_type_p
#undef LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN
#define LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN cp_dump_tree
-#undef LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN
-#define LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN cp_type_quals_as_set
#undef LANG_HOOKS_MAKE_TYPE
#define LANG_HOOKS_MAKE_TYPE cxx_make_type_hook
to be honest, I am not sure why the dump functions ought to use a
language-specific qualifier accessor function; the middle-end wouldn't be doing
that (but, then again, this is only for the language dumps)