diff options
| author | Saar Raz <saar@raz.email> | 2020-02-03 16:05:29 +0200 |
|---|---|---|
| committer | Saar Raz <saar@raz.email> | 2020-02-03 16:05:29 +0200 |
| commit | c822edc11bf0583f0d4e0f6458ca60f57bc621ed (patch) | |
| tree | 0333e10e623b1793c629492ce2ed0bf0a7a73bd5 /clang/test/SemaTemplate/instantiate-abbreviated-template.cpp | |
| parent | 2b54b8b994b45d4e0a72f36dfb91dc9662543234 (diff) | |
| download | bcm5719-llvm-c822edc11bf0583f0d4e0f6458ca60f57bc621ed.tar.gz bcm5719-llvm-c822edc11bf0583f0d4e0f6458ca60f57bc621ed.zip | |
Revert "[Concepts] Instantiate invented template type parameter type-constraint along with function parameters"
This temporarily reverts commit 2b54b8b994b45d4e0a72f36dfb91dc9662543234 which caused some test failures.
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-abbreviated-template.cpp')
| -rw-r--r-- | clang/test/SemaTemplate/instantiate-abbreviated-template.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/clang/test/SemaTemplate/instantiate-abbreviated-template.cpp b/clang/test/SemaTemplate/instantiate-abbreviated-template.cpp deleted file mode 100644 index a73b6ce3610..00000000000 --- a/clang/test/SemaTemplate/instantiate-abbreviated-template.cpp +++ /dev/null @@ -1,29 +0,0 @@ -// RUN: %clang_cc1 -std=c++2a -x c++ %s -verify -// expected-no-diagnostics - -template<typename...> -concept C = true; - -template<typename T> -struct S { - template<typename U> - static void foo1(U a, auto b); - static void foo2(T a, C<T> auto b); - static void foo3(T a, C<decltype(a)> auto b); - static void foo4(T a, C<decltype(a)> auto b, const C<decltype(b)> auto &&c); -}; - -using sf1 = decltype(S<int>::foo1(1, 2)); -using sf2 = decltype(S<int>::foo2(1, 2)); -using sf3 = decltype(S<int>::foo3(1, 2)); -using sf4 = decltype(S<int>::foo4(1, 2, 3)); - - -template<typename... T> -struct G { - static void foo1(auto a, const C<decltype(a)> auto &&... b); - static void foo2(auto a, const C<decltype(a), T> auto &&... b); -}; - -using gf1 = decltype(G<int, char>::foo1('a', 1, 2, 3, 4)); -using gf2 = decltype(G<int, char>::foo2('a', 1, 2)); |

