This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r196852 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 21 Mar 2013 03:25:35 -0000
- Subject: r196852 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
Author: jason
Date: Thu Mar 21 03:25:35 2013
New Revision: 196852
URL: http://gcc.gnu.org/viewcvs?rev=196852&root=gcc&view=rev
Log:
PR c++/54532
* expr.c (cplus_expand_constant): Do nothing if the class is
incomplete.
* semantics.c (reduced_constant_expression_p): Allow PTRMEM_CST.
* typeck2.c (store_init_value): Use reduced_constant_expression_p.
* decl.c (maybe_register_incomplete_var): Handle PTRMEM_CST.
(complete_vars): Likewise.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-static11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/expr.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck2.c