re PR c++/49134 (ICE in g++.dg/cpp0x/constexpr tests for arm)

PR c++/49134
	* tree.c (build_target_expr): Deal with ARM ABI tweaks.

From-SVN: r174682
This commit is contained in:
Jason Merrill 2011-06-06 00:16:38 -04:00 committed by Jason Merrill
parent 114948308a
commit 22d60ad267
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-06-06 Jason Merrill <jason@redhat.com>
PR c++/49134
* tree.c (build_target_expr): Deal with ARM ABI tweaks.
2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
* init.c (build_delete): Warn when deleting type with non-virtual

View File

@ -292,6 +292,9 @@ build_target_expr (tree decl, tree value, tsubst_flags_t complain)
#ifdef ENABLE_CHECKING
gcc_assert (VOID_TYPE_P (TREE_TYPE (value))
|| TREE_TYPE (decl) == TREE_TYPE (value)
/* On ARM ctors return 'this'. */
|| (TREE_CODE (TREE_TYPE (value)) == POINTER_TYPE
&& TREE_CODE (value) == CALL_EXPR)
|| useless_type_conversion_p (TREE_TYPE (decl),
TREE_TYPE (value)));
#endif