]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/54532 ([C++0x][constexpr] internal error when initializing static constexpr...
authorJason Merrill <jason@redhat.com>
Thu, 21 Mar 2013 03:25:35 +0000 (23:25 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 21 Mar 2013 03:25:35 +0000 (23:25 -0400)
commitdeaae9d7c73f87cfd2a0125411fdc54824b5d410
tree875a9ad5038acb1c7903c9adf6be0a805d2de46e
parent766053b33a997fb268791967df46c5c3f9f94a64
re PR c++/54532 ([C++0x][constexpr] internal error when initializing static constexpr with pointer to non-static member variable)

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.

From-SVN: r196852
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]