diff options
author | Jason Merrill <jason@redhat.com> | 2019-01-17 15:36:31 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-01-17 15:36:31 -0500 |
commit | f18aa3a4078f83540903c5d1f5c4ad0e25597ab1 (patch) | |
tree | 5a6852032534ed4ce9f9e1915acde44e905f4037 /gcc/testsuite/gcc.dg/utf-array-short-wchar.c | |
parent | ba29ed0f57b5005586e49d40aaec55d943caff61 (diff) | |
download | gcc-f18aa3a4078f83540903c5d1f5c4ad0e25597ab1.zip gcc-f18aa3a4078f83540903c5d1f5c4ad0e25597ab1.tar.gz gcc-f18aa3a4078f83540903c5d1f5c4ad0e25597ab1.tar.bz2 |
PR c++/86740, ICE with constexpr if and nested generic lambdas.
When we partially instantiate the constexpr if, we walk through its body to
see what it uses from the enclosing local_specializations. That walk was
overlooking the use of 'count' in the captures of the innermost lambda,
because we weren't walking into the capture list.
* tree.c (cp_walk_subtrees): Handle LAMBDA_EXPR.
From-SVN: r268046
Diffstat (limited to 'gcc/testsuite/gcc.dg/utf-array-short-wchar.c')
0 files changed, 0 insertions, 0 deletions