PR c++/85842 - -Wreturn-type, constexpr if and generic lambda.
authorJason Merrill <jason@redhat.com>
Thu, 24 May 2018 20:03:18 +0000 (16:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 24 May 2018 20:03:18 +0000 (16:03 -0400)
commit520fe2e324da4b1aa2c1fbac29741bd45afa98c1
treed5ee3da1e28a5623631a66ec4704faa85a30cfb6
parent71b55d45e4304f5e2e98ac30473c581f58fc486b
PR c++/85842 - -Wreturn-type, constexpr if and generic lambda.

* pt.c (tsubst_lambda_expr): Copy current_function_returns_* to
generic lambda.

From-SVN: r260685
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/constexpr-if23.C [new file with mode: 0644]