https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65642

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Apr  2 16:51:27 2015
New Revision: 221843

URL: https://gcc.gnu.org/viewcvs?rev=221843&root=gcc&view=rev
Log:
    PR c++/65642
    * constexpr.c (cxx_eval_pointer_plus_expression): Call
    cxx_eval_constant_expression on the first operand.

    * g++.dg/cpp0x/constexpr-fold1.C: New test.
    * g++.dg/cpp0x/constexpr-fold2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-fold1.C
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-fold2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to