diff options
author | Jason Merrill <jason@redhat.com> | 2006-06-30 16:48:42 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2006-06-30 16:48:42 -0400 |
commit | 481ac1e92915972d9ba04173d86f1ee50199d1ff (patch) | |
tree | a2144b76f395915e065b07680d2bf3f9f44f4363 /gcc/cp/call.c | |
parent | 17a9fbc4575249a4abc8e5891836b8f8e21ef8c3 (diff) | |
download | gcc-481ac1e92915972d9ba04173d86f1ee50199d1ff.tar.gz |
re PR c++/26577 (ICE in cp_expr_size with volatile and non POD)
PR c++/26577
* call.c (build_new_method_call): Force evaluation of the
instance pointer, not the object.
From-SVN: r115105
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 970fce7ad22..ea89cdfed77 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -5501,9 +5501,9 @@ build_new_method_call (tree instance, tree fns, tree args, none-the-less evaluated. */ if (TREE_CODE (TREE_TYPE (fn)) != METHOD_TYPE && !is_dummy_object (instance_ptr) - && TREE_SIDE_EFFECTS (instance)) + && TREE_SIDE_EFFECTS (instance_ptr)) call = build2 (COMPOUND_EXPR, TREE_TYPE (call), - instance, call); + instance_ptr, call); } } } |