Re: C++ PATCH to stop folding constants to their values in convert_like_real

2018-01-10 Thread Jakub Jelinek
On Fri, Jun 09, 2017 at 03:46:41PM -0700, Jason Merrill wrote: > Something that was missed previously in the delayed folding work: > there's no good reason to be pulling values out of constants in > convert_like_real. Well, it breaks nontype10.C on 32-bit targets. Or, let's use a modified version

C++ PATCH to stop folding constants to their values in convert_like_real

2017-06-09 Thread Jason Merrill
Something that was missed previously in the delayed folding work: there's no good reason to be pulling values out of constants in convert_like_real. With that fixed, I needed to change cp_fully_fold to use cp_fold_rvalue so that it would properly pull out constant values in C++98 mode. Tested