C++ PATCH for c++/85149, generic lambda and constexpr if

Jason Merrill jason@redhat.com
Tue Apr 3 17:35:00 GMT 2018


Now that we partially instantiate generic lambdas, we run into an
issue with C++17 constexpr if: in the testcase, the branches of the
constexpr if become non-dependent when partially instantiated, but the
condition remains dependent.  In that situation, we mustn't substitute
into the branches, so with this patch I use the
PACK_EXPANSION_EXTRA_ARGS mechanism for constexpr if as well.

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


More information about the Gcc-patches mailing list