[PR c++/84968] reject stmt-exprs in noexcept constexprs
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 28 Mar 2018 05:04:59 +0000 (05:04 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 28 Mar 2018 05:04:59 +0000 (05:04 +0000)
commit04acc378eb62c937576065668df01a23fa1b0680
tree9e4b8e9b591e3fc6fa33009cf0b2beb51acb5653
parentd80bb039e612192f7eab8fec30f6b6239f4539a3
[PR c++/84968] reject stmt-exprs in noexcept constexprs

We reject extended statement-expressions in template parameters, so we
might as well reject them in constant expressions used in noexcept
specifications.

for  gcc/cp/ChangeLog

PR c++/84968
* tree.c (strip_typedefs_expr): Reject STATEMENT_LISTs.

for  gcc/testsuite/ChangeLog

PR c++/84968
* g++.dg/eh/pr84968.C: New.

From-SVN: r258913
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/eh/pr84968.C [new file with mode: 0644]