Re: [pushed] c++: Add assert to tsubst.

2021-03-18 Thread Marek Polacek via Gcc-patches
On Thu, Mar 18, 2021 at 02:04:59PM -0700, H.J. Lu wrote: > On Thu, Mar 18, 2021 at 11:35 AM Marek Polacek via Gcc-patches > wrote: > > > > As discussed in the r11-7709 patch, we can now make sure that tsubst > > never sees a FLOAT_EXPR, much like its counterpart FIX_TRUNC_EXPR. > > > > Tested x86_

Re: [pushed] c++: Add assert to tsubst.

2021-03-18 Thread H.J. Lu via Gcc-patches
On Thu, Mar 18, 2021 at 11:35 AM Marek Polacek via Gcc-patches wrote: > > As discussed in the r11-7709 patch, we can now make sure that tsubst > never sees a FLOAT_EXPR, much like its counterpart FIX_TRUNC_EXPR. > > Tested x86_64-pc-linux-gnu, applying to trunk. > > gcc/cp/ChangeLog: > > *

[pushed] c++: Add assert to tsubst.

2021-03-18 Thread Marek Polacek via Gcc-patches
As discussed in the r11-7709 patch, we can now make sure that tsubst never sees a FLOAT_EXPR, much like its counterpart FIX_TRUNC_EXPR. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog: * pt.c (tsubst_copy_and_build): Add assert. --- gcc/cp/pt.c | 2 ++ 1 file changed, 2