re PR c++/52892 (Function pointer loses constexpr qualification)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 27 Aug 2014 17:03:34 +0000 (17:03 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 27 Aug 2014 17:03:34 +0000 (17:03 +0000)
commitd7afa673382e790f34aa8811c020f043580f9fa2
tree01bedd2000e53feabec7995c08cdbca348ba5c27
parent3d0b75dee41113c397caabd6b5690c6c39204d0d
re PR c++/52892 (Function pointer loses constexpr qualification)

/cp
2014-08-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52892
* semantics.c (cxx_eval_call_expression): Use STRIP_NOPS on the
result of cxx_eval_constant_expression.

/testsuite
2014-08-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52892
* g++.dg/cpp0x/constexpr-52892-1.C: New.
* g++.dg/cpp0x/constexpr-52892-2.C: Likewise.
* g++.dg/cpp0x/constexpr-52282-1.C: Likewise.

From-SVN: r214579
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-52282-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-52892-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-52892-2.C [new file with mode: 0644]