This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r275613 - in /trunk/gcc: cp/ChangeLog cp/conste...
- From: mpolacek at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 10 Sep 2019 21:04:33 -0000
- Subject: r275613 - in /trunk/gcc: cp/ChangeLog cp/conste...
Author: mpolacek
Date: Tue Sep 10 21:04:33 2019
New Revision: 275613
URL: https://gcc.gnu.org/viewcvs?rev=275613&root=gcc&view=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:
trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-incr2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/testsuite/ChangeLog