Commit 3bdf0a9b by Jason Merrill Committed by Jason Merrill

re PR c++/63928 (use after free in cp/constexpr.c)

	PR c++/63928
	* constexpr.c (cxx_eval_store_expression): Return init, not *valp.

From-SVN: r217790
parent 92c66d83
2014-11-19 Jason Merrill <jason@redhat.com>
PR c++/63928
* constexpr.c (cxx_eval_store_expression): Return init, not *valp.
2014-11-19 Paolo Carlini <paolo.carlini@oracle.com> 2014-11-19 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55425 PR c++/55425
......
...@@ -2554,7 +2554,7 @@ cxx_eval_store_expression (const constexpr_ctx *ctx, tree t, ...@@ -2554,7 +2554,7 @@ cxx_eval_store_expression (const constexpr_ctx *ctx, tree t,
else if (addr) else if (addr)
return target; return target;
else else
return *valp; return init;
} }
/* Evaluate a ++ or -- expression. */ /* Evaluate a ++ or -- expression. */
......
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