re PR c++/68949 (Implicit initialization of array member silently miscompiling.)
authorJason Merrill <jason@redhat.com>
Tue, 26 Jan 2016 21:34:16 +0000 (16:34 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 26 Jan 2016 21:34:16 +0000 (16:34 -0500)
commitca30abcd13617314b7de526da03802639a2a7fc7
tree39f30693c0fcb67ca9098ca43ad7fe4576d05c26
parent2d63bc398f7221edbec3e3f1d4ecbacac87cb3a5
re PR c++/68949 (Implicit initialization of array member silently miscompiling.)

PR c++/68949

* constexpr.c (register_constexpr_fundef): Keep the un-massaged body.
(cxx_eval_call_expression): Don't look through clones.
* optimize.c (maybe_clone_body): Clear DECL_SAVED_TREE of the alias.
* semantics.c (expand_or_defer_fn_1): Keep DECL_SAVED_TREE of
maybe-in-charge *tor.

From-SVN: r232848
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/optimize.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/constexpr-array15.C [new file with mode: 0644]