summaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 1fae5f8cd6a..630cec1295f 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -6602,10 +6602,10 @@ build_ptrmemfunc_type (tree type)
later. */
TYPE_SET_PTRMEMFUNC_TYPE (type, t);
- if (TYPE_STRUCTURAL_EQUALITY_P (type))
- SET_TYPE_STRUCTURAL_EQUALITY (t);
- else if (TYPE_CANONICAL (type) != type)
- TYPE_CANONICAL (t) = build_ptrmemfunc_type (TYPE_CANONICAL (type));
+ /* Managing canonical types for the RECORD_TYPE behind a
+ pointer-to-member function is a nightmare, so use structural
+ equality for now. */
+ SET_TYPE_STRUCTURAL_EQUALITY (t);
return t;
}