[LLVMbugs] [Bug 21235] New: clang-cl doesn't take member templates into account for -Wunused-private-field warnings
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Oct 9 18:50:58 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21235
Bug ID: 21235
Summary: clang-cl doesn't take member templates into account
for -Wunused-private-field warnings
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: ehsan at mozilla.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat test.cpp
class X {
bool x;
public:
template<class T>
void f() {
x = true;
}
};
$ ./bin/clang-cl -c -Wall test.cpp
test.cpp(2,8) : warning: private field 'x' is not used
[-Wunused-private-field]
bool x;
^
1 warning generated.
--
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/20141010/231806eb/attachment.html>
More information about the llvm-bugs
mailing list