re PR c++/56728 (ICE using constexpr initialization and arrays)
authorJason Merrill <jason@redhat.com>
Thu, 28 Mar 2013 18:20:30 +0000 (14:20 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 28 Mar 2013 18:20:30 +0000 (14:20 -0400)
commit477e1843fd13958fbecafeb540a8876146a61e3a
tree33027c7c041aeceaaea4fdb86398083626a69329
parent9cd347ae13bb5c8a1785aa8cbd7287fe6d606120
re PR c++/56728 (ICE using constexpr initialization and arrays)

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.

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