re PR c++/50800 (Internal compiler error in finish_member_declarations, possibly...
authorJason Merrill <jason@redhat.com>
Tue, 28 Apr 2015 14:43:54 +0000 (10:43 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 28 Apr 2015 14:43:54 +0000 (10:43 -0400)
commitb71983a5baee2fd3b87233477eee7db4b5172bee
treea17f7c17ea0ce441d4b64b71aa5dccabfc9653b0
parent7bfc5adac8d7151ed4c5ed13ed230f29c2102d9c
re PR c++/50800 (Internal compiler error in finish_member_declarations, possibly related to may_alias attribute)

PR c++/50800
* tree.c (strip_typedefs): Add remove_attributes parm.
(strip_typedefs_expr): Likewise.
(apply_identity_attributes): New subroutine of strip_typedefs.
* pt.c (canonicalize_type_argument): Let strip_typedefs handle attrs.
(convert_nontype_argument, unify): Likewise.
* cp-tree.h: Adjust.

From-SVN: r222530
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/tree.c
gcc/testsuite/g++.dg/abi/mangle40.C
gcc/testsuite/g++.dg/ext/alias-mangle.C
gcc/testsuite/g++.dg/ext/attrib50.C [new file with mode: 0644]