PR c++/54532
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Mar 2013 03:25:35 +0000 (03:25 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Mar 2013 03:25:35 +0000 (03:25 +0000)
commit88af6243ca81dc222d58bfce586dc1e13b65c7c4
tree875a9ad5038acb1c7903c9adf6be0a805d2de46e
parent6ef87af265959a9cc0f510ed4b31c092d68b25a4
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196852 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/expr.c
gcc/cp/semantics.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/cpp0x/constexpr-static11.C [new file with mode: 0644]