mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-18 14:30:42 +08:00
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:
parent
114948308a
commit
22d60ad267
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user