Re: C++ PATCH for c++/91705 - constexpr evaluation rejects ++/-- on floats

2019-09-10 Thread Jason Merrill
On 9/10/19 11:18 AM, Marek Polacek wrote: We started to reject this testcase with r269078, whereby we perform constexpr evaluation on pre-cp_fold_function bodies. In this test that causes a problem because the offset argument of a PREINCREMENT_EXPR was a FLOAT_EXPR, and then the call to fold_bui

C++ PATCH for c++/91705 - constexpr evaluation rejects ++/-- on floats

2019-09-10 Thread Marek Polacek
We started to reject this testcase with r269078, whereby we perform constexpr evaluation on pre-cp_fold_function bodies. In this test that causes a problem because the offset argument of a PREINCREMENT_EXPR was a FLOAT_EXPR, and then the call to fold_build2 doesn't produce a REAL_CST and VERIFY_CO