Re: [PATCH] [PR c++/84968] reject stmt-exprs in noexcept constexprs

2018-03-23 Thread Jason Merrill
OK. On Fri, Mar 23, 2018 at 11:27 AM, Alexandre Oliva wrote: > We reject extended statement-expressions in template parameters, so we > might as well reject them in constant expressions used in noexcept > specifications. > > Regstrapped on i686- and x86_64-linux-gnu. Ok to install? > > for gcc/

[PATCH] [PR c++/84968] reject stmt-exprs in noexcept constexprs

2018-03-23 Thread Alexandre Oliva
We reject extended statement-expressions in template parameters, so we might as well reject them in constant expressions used in noexcept specifications. Regstrapped on i686- and x86_64-linux-gnu. Ok to install? for gcc/cp/ChangeLog PR c++/84968 * tree.c (strip_typedefs_expr):