https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88752
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Feb 8 14:49:58 2019 New Revision: 268701 URL: https://gcc.gnu.org/viewcvs?rev=268701&root=gcc&view=rev Log: PR c++/88752 - ICE with lambda and constexpr if. * cp-tree.h (LAMBDA_EXPR_INSTANTIATED): New. * pt.c (tsubst_lambda_expr): Set it. (instantiated_lambda_fn_p): Check it. (enclosing_instantiation_of): Use it. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1z/constexpr-if26.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/cp-tree.h branches/gcc-8-branch/gcc/cp/pt.c