diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-07-13 21:08:08 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-07-13 21:08:08 +0000 |
commit | 66ed89d07ffd6d5c372e4bb566216da30844a796 (patch) | |
tree | 8ff080a8cdeb96adc0b7290c567a6288f38c5c28 /clang/test | |
parent | ab277d64003cdc42ae74b1ff5bca9d869ec55a33 (diff) | |
download | bcm5719-llvm-66ed89d07ffd6d5c372e4bb566216da30844a796.tar.gz bcm5719-llvm-66ed89d07ffd6d5c372e4bb566216da30844a796.zip |
Correctly classify pack expansions as NON_CANONICAL_UNLESS_DEPENDENT
Test coverage for non-dependent pack expansions doesn't demonstrate a
failure prior to this patch (a follow-up commit improving debug info
will cover this commit specifically) but covers a related hole in our
test coverage.
Reviewed by Richard Smith & Eli Friedman.
llvm-svn: 186261
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CXX/temp/temp.decls/temp.alias/p3.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.decls/temp.alias/p3.cpp b/clang/test/CXX/temp/temp.decls/temp.alias/p3.cpp index afd9b4b0de3..2d46502e1d9 100644 --- a/clang/test/CXX/temp/temp.decls/temp.alias/p3.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.alias/p3.cpp @@ -9,5 +9,9 @@ template<class T> struct A { B<short> b; template<typename T> using U = int; + +template<typename ...T> void f(U<T> ...xs); +void g() { f<void,void,void>(1, 2, 3); } + // FIXME: This is illegal, but probably only because CWG1044 missed this paragraph. template<typename T> using U = U<T>; |