C++ PATCH for c++/63139 (variadic alias templates)
Jason Merrill
jason@redhat.com
Thu Sep 11 13:45:00 GMT 2014
This testcase was breaking because multiple substitutions of <Ts...,
ContainerEndA> into T... would lose the original arguments when we pull
the pattern out of the intermediate expansion. So the added assert
guards against that happening again, and we avoid the situation by
simplifying the handling of that situation: if we are substituting into
a trivial expansion like T... we can just return the argument pack.
Tested x86_64-pc-linux-gnu, applying to trunk and 4.9.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 63139.patch
Type: text/x-patch
Size: 2611 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140911/fc3cca28/attachment.bin>
More information about the Gcc-patches
mailing list