re PR c++/81933 (Invalid "constexpr call flows off the end of the function" error)
commitf25d7e06e2327990e34b317761d4bfc92f523bcf
authorMarek Polacek <polacek@redhat.com>
Mon, 22 Jan 2018 16:05:20 +0000 (22 16:05 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 22 Jan 2018 16:05:20 +0000 (22 16:05 +0000)
treee37113f1276ec56b84f64bd33054dfb5ba6e51ae
parent6a18c14681b89fa111d2fcafc69c850d9c0a6a27
re PR c++/81933 (Invalid "constexpr call flows off the end of the function" error)

PR c++/81933
* typeck2.c (split_nonconstant_init_1): Return false if we didn't
split out anything.

* g++.dg/cpp1y/constexpr-empty4.C: New test.

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