constexpr.c (cxx_eval_store_expression): Don't set CONSTRUCTOR_NO_IMPLICIT_ZERO if...
authorJason Merrill <jason@redhat.com>
Mon, 17 Aug 2015 18:41:59 +0000 (14:41 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 17 Aug 2015 18:41:59 +0000 (14:41 -0400)
commitc75ce5301b616b22f1c24f216eed8e84f9074469
treee1852ad43d4edf8fed55cd7acbba859ac143878d
parent5c563482ac83d8d2874f2cd4f608eae57d966dee
constexpr.c (cxx_eval_store_expression): Don't set CONSTRUCTOR_NO_IMPLICIT_ZERO if we have an enclosing CONSTRUCTOR...

* constexpr.c (cxx_eval_store_expression): Don't set
CONSTRUCTOR_NO_IMPLICIT_ZERO if we have an enclosing CONSTRUCTOR
without it.
(cxx_eval_array_reference): Check it.

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