[Bug c++/71896] [6/7 Regression] Constexpr function with pointer to member parameter doesn't return constexpr value

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 21 06:17:00 GMT 2016


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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Jul 21 06:16:24 2016
New Revision: 238575

URL: https://gcc.gnu.org/viewcvs?rev=238575&root=gcc&view=rev
Log:
        PR c++/71896 - constexpr pointer-to-member comparison.

        * constexpr.c (cxx_eval_binary_expression): Handle comparison
        between lowered and unlowered PTRMEM_CST.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-ptrmem6.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/constexpr.c


More information about the Gcc-bugs mailing list