re PR c++/50800 (Internal compiler error in finish_member_declarations, possibly...
authorJason Merrill <jason@redhat.com>
Thu, 23 Apr 2015 15:55:21 +0000 (11:55 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 23 Apr 2015 15:55:21 +0000 (11:55 -0400)
commitb88fa2656ba66afd943e0c8a944c139c16343dfc
treed05c2d5aab8de47b924156998dfccc05465c5d69
parent6c28362134af5aa01326e4fc3d38753b7fd42eba
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: r222377
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-canon2.C
gcc/testsuite/g++.dg/ext/alias-mangle.C
gcc/testsuite/g++.dg/ext/attrib50.C [new file with mode: 0644]