[llvm-bugs] [Bug 44334] New: misleading diagnostic about static non-const auto data member with inline initializer
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Dec 18 05:54:44 PST 2019
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: unassignedclangbugs at nondot.org
Reporter: tilkax at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191218/d3f12e55/attachment.html>
More information about the llvm-bugs
mailing list