Fix lambdas in template default argument of inherited ctor.
authorJason Merrill <jason@redhat.com>
Tue, 29 Aug 2017 19:40:41 +0000 (15:40 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 29 Aug 2017 19:40:41 +0000 (15:40 -0400)
commitb3eae0dd176c15cf4b358ae5d93d7c3144d253fc
tree56846a8b93ef1c41a69cffc87d9b92ea5838a49b
parent4cc20315a7e67b6ebbdbfbb736122476bf28f041
Fix lambdas in template default argument of inherited ctor.

* method.c (synthesized_method_base_walk): Replace an inherited
template with its specialization.
(synthesized_method_walk): Make inheriting_ctor a pointer.
(maybe_explain_implicit_delete, explain_implicit_non_constexpr)
(deduce_inheriting_ctor, implicitly_declare_fn): Adjust.

From-SVN: r251426
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle5.C [new file with mode: 0644]