constexpr.c (cxx_eval_store_expression): Ignore clobbers.
authorJason Merrill <jason@redhat.com>
Wed, 15 Apr 2015 21:17:29 +0000 (17:17 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 15 Apr 2015 21:17:29 +0000 (17:17 -0400)
commit58cc255ca031b2e0f5da7646347021248cc48805
tree7ece978236340d6784aa4b3997ddc119b2cb5fd1
parentefb5e8170a77bb24bab9eb6f3331d815e255c8ee
constexpr.c (cxx_eval_store_expression): Ignore clobbers.

* constexpr.c (cxx_eval_store_expression): Ignore clobbers.
(build_constexpr_constructor_member_initializers): Loop to find
the BIND_EXPR.
* decl.c (start_preparsed_function): Clobber the object at the
beginning of a constructor.

From-SVN: r222135
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/decl.c
gcc/testsuite/g++.dg/opt/flifetime-dse2.C [new file with mode: 0644]