PR c++/79118 - anon-members and constexpr
authorNathan Sidwell <nathan@acm.org>
Tue, 24 Jan 2017 19:25:32 +0000 (19:25 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 24 Jan 2017 19:25:32 +0000 (19:25 +0000)
commit3e4b91f275a6fb8f6466f1ab8c9f24e3d2abf13f
tree7a3ca93f7b5264d2830fe6c4e50bda6072a0a7ac
parentb20ba138efe0958dac85df2ec52ca0fc83dbb539
PR c++/79118 - anon-members and constexpr

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.

From-SVN: r244881
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr79118.C [new file with mode: 0644]