PR c++/85842 - -Wreturn-type, constexpr if and generic lambda.
commit4d5038dd20f2f57b520035242dbb0fcad598c4c6
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 May 2018 20:03:18 +0000 (24 20:03 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 May 2018 20:03:18 +0000 (24 20:03 +0000)
treed5ee3da1e28a5623631a66ec4704faa85a30cfb6
parent15f0e921f47a9b81c4a30295c8685ad37d3ff4e0
PR c++/85842 - -Wreturn-type, constexpr if and generic lambda.

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

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