r197209 - in /trunk/gcc: cp/ChangeLog cp/semant...
jason@gcc.gnu.org
jason@gcc.gnu.org
Thu Mar 28 18:20:00 GMT 2013
Author: jason
Date: Thu Mar 28 18:20:30 2013
New Revision: 197209
URL: http://gcc.gnu.org/viewcvs?rev=197209&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
More information about the Gcc-cvs
mailing list