Issue |
135032
|
Summary |
[clang] Crash instantiating static variable template specialization member of class template
|
Labels |
clang
|
Assignees |
|
Reporter |
katzdm
|
The following program crashes during codegen, and looks to have done so since Clang 9.
```cpp
template <typename>
struct TCls {
template <typename T>
static auto var = T::smem;
};
struct S { static constexpr int smem = 1; };
int main() {
(void) TCls<int>::var<S>;
}
```
https://godbolt.org/z/x9eYMKfrv
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs