C++ PATCH for c++/86480, nested variadic lambda and constexpr if

Jason Merrill jason@redhat.com
Tue Jul 17 15:36:00 GMT 2018


The problem here was that when looking for unexpanded packs, we looked
into IF_STMT_EXTRA_ARGS of a constexpr if, which includes the bindings
for function parameter packs, but not in a way that uses them.  So we
shouldn't look there for unexpanded packs.

Trying to write a smaller testcase revealed another bug, whereby
collecting the bindings for captured variables wasn't respecting
unevaluated context.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 86480.diff
Type: text/x-patch
Size: 2507 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180717/fee10169/attachment.bin>


More information about the Gcc-patches mailing list