]> granicus.if.org Git - clang/commit
Correctly handle packs for variadic type traits.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 19 Jul 2013 21:49:32 +0000 (21:49 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 19 Jul 2013 21:49:32 +0000 (21:49 +0000)
commit20cfecac4421223e4f1f6fc825bee9a1275a994a
tree52bd8857b06fb1ca5694a816be244c4d511900c3
parent519f26bd78c4743bb56e6fb74d9c5163f73d859c
Correctly handle packs for variadic type traits.

I'm not sure how to write a test for this; the following shows the
difference in -ast-dump:

template <int x> struct A {};
template <class T> struct B { };
template <class ...Args> using C = A<(__is_trivially_constructible(Args...))>;
template <class ...Args> using D = C<B<Args>...>;

However, I can't seem to write a test that triggers a visible difference
in behavior.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186726 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/TreeTransform.h