This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r217815 - in /trunk/gcc: cp/ChangeLog cp/conste...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 19 Nov 2014 22:06:26 -0000
- Subject: r217815 - in /trunk/gcc: cp/ChangeLog cp/conste...
Author: jason
Date: Wed Nov 19 22:06:26 2014
New Revision: 217815
URL: https://gcc.gnu.org/viewcvs?rev=217815&root=gcc&view=rev
Log:
PR c++/63885
* constexpr.c (cxx_eval_constant_expression) [PARM_DECL]: Don't
complain yet about a reference.
[TARGET_EXPR]: Handle TARGET_EXPR with addr == true.
[ADDR_EXPR]: Make sure we don't take the address of a CONSTRUCTOR.
(cxx_bind_parameters_in_call): In the new scheme addr is always false.
* typeck.c (build_address): Don't take the address of a CONSTRUCTOR.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ref8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/cp/typeck.c