PR c++/79118 - anon-members and constexpr
commit2f4cab3c1087193ce25c82ffc4d86c13db1f07db
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jan 2017 19:25:32 +0000 (24 19:25 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jan 2017 19:25:32 +0000 (24 19:25 +0000)
tree7a3ca93f7b5264d2830fe6c4e50bda6072a0a7ac
parentd8b0d41e916cd614cdca527e689d1e06782ec1dd
PR c++/79118 - anon-members and constexpr
* constexpr.c (cx_check_missing_mem_inits): Caller passes type not
ctor decl.  Recursively check anonymous members.
(register_constexpr_fundef): Adjust cx_check_missing_mem_inits
call.
(explain_invalid_constexpr_fn): Likewise.

PR c++/79118
* g++.dg/cpp0x/pr79118.C: New.

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