diff options
author | Krystian Stasiowski <sdkrystian@gmail.com> | 2024-01-03 14:07:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 11:07:46 -0800 |
commit | 7fbc1de9896029636dd572a692ee90ba88285943 (patch) | |
tree | 81ef4fedffadbce61b934cf081fbcf51bb899c4f /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 7c963fde16d8ba340d6a6ed044b9c775f9bfab48 (diff) | |
download | llvm-7fbc1de9896029636dd572a692ee90ba88285943.zip llvm-7fbc1de9896029636dd572a692ee90ba88285943.tar.gz llvm-7fbc1de9896029636dd572a692ee90ba88285943.tar.bz2 |
[Clang][Sema] Diagnose unexpanded packs in the template argument lists of function template specializations (#76677)
This diagnoses unexpanded packs in the _unqualified-id_ of a function
template specialization's _declarator-id_. For example:
```cpp
template<typename... Ts>
struct A
{
template<typename U>
void f();
template<>
void f<Ts>(); // error: explicit specialization contains unexpanded parameter pack 'Ts'
};
```
I moved the handling of template-id's so it happens right after we
determine whether we are declaring a function template/function template
specialization so diagnostics are issued in lexical order.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions