https://bugs.llvm.org/show_bug.cgi?id=44334
Bug ID: 44334
Summary: misleading diagnostic about static non-const auto data
member with inline initializer
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
struct A
{
static auto a = 0;
};
"error: non-const static data member must be initialized out of line"
The diagnostic is indicating a fix that wouldn't work either. A better
suggestion would be to add 'const'.
--
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