re PR c++/84558 (ICE with invalid constexpr constructor)
authorJakub Jelinek <jakub@redhat.com>
Mon, 26 Feb 2018 21:52:39 +0000 (22:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 26 Feb 2018 21:52:39 +0000 (22:52 +0100)
commitc2236b9b79e38e853026ac236984fcb5eabfb5df
tree119c4df75604d487674a25a4ec3cb8e8ab870250
parent08735f538cd94d5be5fa1b8ee79bfabc7f530a8a
re PR c++/84558 (ICE with invalid constexpr constructor)

PR c++/84558
* constexpr.c (cxx_eval_vec_init_1): For reuse, treat NULL eltinit like
a valid constant initializer.  Formatting fixes.

* g++.dg/cpp1y/pr84558.C: New test.

From-SVN: r258014
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr84558.C [new file with mode: 0644]