diff options
author | Jason Merrill <jason@redhat.com> | 2019-01-31 10:03:21 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-01-31 10:03:21 -0500 |
commit | 636ecb78a36df20232be05fd4fa2bdbea67c5551 (patch) | |
tree | 973524d03603c0ee792bc11ddd3b89c0974682f1 /libgcc | |
parent | f942ef18b84ff6fd5774a606357e4ebcec120da3 (diff) | |
download | gcc-636ecb78a36df20232be05fd4fa2bdbea67c5551.zip gcc-636ecb78a36df20232be05fd4fa2bdbea67c5551.tar.gz gcc-636ecb78a36df20232be05fd4fa2bdbea67c5551.tar.bz2 |
PR c++/88752 - ICE with lambda and constexpr if.
In this testcase, we look for an instantiation of the outer lambda from
within the inner lambda. enclosing_instantiation_of didn't handle this
properly, as it assumed that any references would be from the same lambda
nesting depth. Fixed thus.
* 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.
From-SVN: r268424
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions