https://bugs.llvm.org/show_bug.cgi?id=46063
Bug ID: 46063
Summary: Fail to deduce const auto templated variable
Product: clang
Version: 10.0
Hardware: PC
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: C++14
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
For the following snippet, clang++ fails to compile, since 9.0. And it still
fails in the latest version 10.0.
`
template<class T>
struct X {
template<int N>
static constexpr auto value = N;
};
int main() {
return X<int>::value<0>;
}
`
This is a serious bug, blocking our upgradation to clang 9/10.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs