Commit 2a53208d by Jason Merrill

re PR c++/11266 ([tree-ssa] ICE with placement new)

        PR c++/11266
        * gimplify.c (gimple_add_tmp_var): Also make sure
        seen_in_bind_expr isn't set.
        (mostly_copy_tree_r): Don't copy a TARGET_EXPR.
        (gimplify_target_expr): Only expand a TARGET_EXPR the first time
        we see it.

[[Split portion of a mixed commit.]]

From-SVN: r73674.2
parent cb7a5092
// PR c++/11266
// We were expanding the same TARGET_EXPR twice, for placement new and
// delete.
void* operator new (unsigned int, void*) throw();
void operator delete (void*, void*) throw();
struct A { A(); };
void foo() { new(new A)A; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment