[all-commits] [llvm/llvm-project] 584e43: [Clang][Sema] Treat explicit specializations of st...
Krystian Stasiowski via All-commits
all-commits at lists.llvm.org
Wed Jul 3 09:13:14 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 584e431a4b257098d1ff13a0e9926842222ba601
https://github.com/llvm/llvm-project/commit/584e431a4b257098d1ff13a0e9926842222ba601
Author: Krystian Stasiowski <sdkrystian at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/lib/Sema/SemaType.cpp
A clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5-cxx14.cpp
Log Message:
-----------
[Clang][Sema] Treat explicit specializations of static data member templates declared without 'static' as static data members when diagnosing uses of 'auto' (#97425)
After #93873 clang no longer permits declarations of explicit
specializations of static data member templates to use the `auto`
_placeholder-type-specifier_:
```
struct A {
template<int N>
static constexpr auto x = 0;
template<>
constexpr auto x<1> = 1; // error: 'auto' not allowed in non-static struct member
};
```
This patch fixes the issue.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list