re PR c++/79822 (ICE with void statement expression)
authorJakub Jelinek <jakub@redhat.com>
Mon, 6 Mar 2017 15:43:51 +0000 (16:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 6 Mar 2017 15:43:51 +0000 (16:43 +0100)
commit345edb3701a0e99d10a532736f27675846ca5dec
tree1355c38d33b486b38764e67d763dc2e6de156709
parent90d9a8e6ef72bd85839fb092605aa6d945616178
re PR c++/79822 (ICE with void statement expression)

PR c++/79822
* constexpr.c (cxx_eval_statement_list): Treat empty ({ }) like
({ (void) 0; }).

* g++.dg/cpp0x/constexpr-79822.C: New test.

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