re PR c++/62129 (internal compiler error: in output_constant, at varasm.c:4755)
authorJason Merrill <jason@redhat.com>
Fri, 22 Aug 2014 16:58:25 +0000 (12:58 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 22 Aug 2014 16:58:25 +0000 (12:58 -0400)
commit2d7d7f0fe49688f097720cd921ae65921034cd59
treef630fb30ab136daa63badb4f992fceeb4416e73c
parent9b517712d78d2d457884dcf23519c7f65c3c28dd
re PR c++/62129 (internal compiler error: in output_constant, at varasm.c:4755)

PR c++/62129
* class.c (outermost_open_class): New.
* cp-tree.h: Declare it.
* decl.c (maybe_register_incomplete_var): Use it.
(complete_vars): Handle any constant variable.
* expr.c (cplus_expand_constant): Handle CONSTRUCTOR.

From-SVN: r214333
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/expr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-ptrmem3.C [new file with mode: 0644]