[Bug c++/85842] [8/9 Regression] Bogus -Wreturn-type with generic lambda and constexpr if
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 24 20:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85842
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu May 24 20:03:18 2018
New Revision: 260685
URL: https://gcc.gnu.org/viewcvs?rev=260685&root=gcc&view=rev
Log:
PR c++/85842 - -Wreturn-type, constexpr if and generic lambda.
* pt.c (tsubst_lambda_expr): Copy current_function_returns_* to
generic lambda.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-if23.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list