re PR c++/51489 (constexpr not working consistently)
authorJason Merrill <jason@redhat.com>
Mon, 19 Dec 2011 05:57:52 +0000 (00:57 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 19 Dec 2011 05:57:52 +0000 (00:57 -0500)
commit37ef545a763f325576a837b39d5a908c5e5ca1d9
tree63d5f57ed50f1cb0252282dcfd003c083ac7482b
parenta733dd3dedf9f193e23f11947d9b2a0bb1d68bcf
re PR c++/51489 (constexpr not working consistently)

PR c++/51489
* semantics.c (cxx_eval_outermost_constant_expr): Check for
conversion from pointer to integer here.
(cxx_eval_constant_expression) [NOP_EXPR]: Not here.

From-SVN: r182470
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-ptrsub.C [new file with mode: 0644]