aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2015-04-24 15:11:45 -0400
committerJason Merrill <jason@gcc.gnu.org>2015-04-24 15:11:45 -0400
commitc6f044f7664a1659618e0585c703036f472a1caa (patch)
treefcec492840a88dd43e1c97bfb438cc31723cd5fe /gcc/tree.c
parent6f96dcebb22a03fd4df64a18c13c5bbc1cee8a76 (diff)
downloadgcc-c6f044f7664a1659618e0585c703036f472a1caa.zip
gcc-c6f044f7664a1659618e0585c703036f472a1caa.tar.gz
gcc-c6f044f7664a1659618e0585c703036f472a1caa.tar.bz2
re PR c++/50800 (Internal compiler error in finish_member_declarations, possibly related to may_alias attribute)
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
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 497b1452..daf0292 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -7706,7 +7706,7 @@ build_pointer_type_for_mode (tree to_type, machine_mode mode,
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. */
@@ -7773,7 +7773,7 @@ build_reference_type_for_mode (tree to_type, machine_mode mode,
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);