PR c++/50800
gcc/
* tree.c (build_reference_type_for_mode): Don't pass can_alias_all
down when building TYPE_CANONICAL.
(build_pointer_type_for_mode): Likewise.
gcc/cp/
* typeck.c (structural_comptypes): Don't check TYPE_REF_CAN_ALIAS_ALL.
From-SVN: r222419
+2015-04-24 Jason Merrill <jason@redhat.com>
+
+ PR c++/50800
+ * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
+ down when building TYPE_CANONICAL.
+ (build_pointer_type_for_mode): Likewise.
+
2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
* genrecog.c (validate_pattern): Check matching constraint refers
2015-04-24 Jason Merrill <jason@redhat.com>
+ PR c++/50800
+ * typeck.c (structural_comptypes): Don't check TYPE_REF_CAN_ALIAS_ALL.
+
* constexpr.c (potential_constant_expression_1) [MINUS_EXPR]:
Remove obsolete code.
[NE_EXPR]: Likewise.
case POINTER_TYPE:
if (TYPE_MODE (t1) != TYPE_MODE (t2)
- || TYPE_REF_CAN_ALIAS_ALL (t1) != TYPE_REF_CAN_ALIAS_ALL (t2)
|| !same_type_p (TREE_TYPE (t1), TREE_TYPE (t2)))
return false;
break;
else if (TYPE_CANONICAL (to_type) != to_type)
TYPE_CANONICAL (t)
= build_pointer_type_for_mode (TYPE_CANONICAL (to_type),
- mode, can_alias_all);
+ mode, false);
/* Lay out the type. This function has many callers that are concerned
with expression-construction, and this simplifies them all. */
else if (TYPE_CANONICAL (to_type) != to_type)
TYPE_CANONICAL (t)
= build_reference_type_for_mode (TYPE_CANONICAL (to_type),
- mode, can_alias_all);
+ mode, false);
layout_type (t);