This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r182470 - in /trunk/gcc: cp/ChangeLog cp/semant...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 19 Dec 2011 05:57:54 -0000
- Subject: r182470 - in /trunk/gcc: cp/ChangeLog cp/semant...
Author: jason
Date: Mon Dec 19 05:57:52 2011
New Revision: 182470
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182470
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ptrsub.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog