diff options
| author | Krystian Stasiowski <sdkrystian@gmail.com> | 2024-05-20 14:50:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-20 14:50:58 -0400 |
| commit | e75b58cfc666fc168d05580d2b7fd274830a4dd0 (patch) | |
| tree | aa21f4859b184f9c0cbd0376f6e6751023a24715 /lldb/test/API/python_api/debugger | |
| parent | a91d5c07f2357f10a5378bb3b0e439847f2b8e00 (diff) | |
[Clang][Sema] Do not add implicit 'const' when matching constexpr function template explicit specializations after C++14 (#92449)
Clang incorrectly accepts the following when using C++14 or later:
```
struct A {
template<typename T>
void f() const;
template<>
constexpr void f<int>();
};
```
Non-static member functions declared `constexpr` are only implicitly
`const` in C++11. This patch makes clang reject the explicit
specialization of `f` in language modes after C++11.
Diffstat (limited to 'lldb/test/API/python_api/debugger')
0 files changed, 0 insertions, 0 deletions
