PR c++/56728
commite2bdd89a14028ab6f10634e19face31fc577f343
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Mar 2013 18:20:30 +0000 (28 18:20 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Mar 2013 18:20:30 +0000 (28 18:20 +0000)
tree33027c7c041aeceaaea4fdb86398083626a69329
parentcea39eb6416b53a7bc15e297f090f335a1c51caa
PR c++/56728
* semantics.c (potential_constant_expression_1) [NOP_EXPR]: Reject
conversion from integer to pointer.
(cxx_eval_constant_expression): Likewise.
(cxx_eval_indirect_ref): Use the folded operand if we still think
this might be constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197209 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C [new file with mode: 0644]