[Bug c++/91705] [9 Regression] operator++ broken in constexpr floating point code

2019-09-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91705

Andrew Pinski  changed:

   What|Removed |Added

 CC||cyp561 at gmail dot com

--- Comment #13 from Andrew Pinski  ---
*** Bug 91792 has been marked as a duplicate of this bug. ***

[Bug c++/91705] [9 Regression] operator++ broken in constexpr floating point code

2019-09-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91705

Marek Polacek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #12 from Marek Polacek  ---
Fixed.

[Bug c++/91705] [9 Regression] operator++ broken in constexpr floating point code

2019-09-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91705

--- Comment #11 from Marek Polacek  ---
Author: mpolacek
Date: Tue Sep 10 22:39:46 2019
New Revision: 275615

URL: https://gcc.gnu.org/viewcvs?rev=275615=gcc=rev
Log:
PR c++/91705 - constexpr evaluation rejects ++/-- on floats.
* constexpr.c (cxx_eval_increment_expression): Call fold_simple on
the offset.

* g++.dg/cpp1y/constexpr-incr2.C: New test.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-incr2.C
Modified:
branches/gcc-9-branch/gcc/cp/ChangeLog
branches/gcc-9-branch/gcc/cp/constexpr.c

[Bug c++/91705] [9 Regression] operator++ broken in constexpr floating point code

2019-09-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91705

Marek Polacek  changed:

   What|Removed |Added

Summary|[9/10 Regression]   |[9 Regression] operator++
   |operator++ broken in|broken in constexpr
   |constexpr floating point|floating point code
   |code|

--- Comment #10 from Marek Polacek  ---
Fixed on trunk so far.