PR c++/49134
* tree.c (build_target_expr): Deal with ARM ABI tweaks.
From-SVN: r174682
+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
#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