http://llvm.org/bugs/show_bug.cgi?id=15464
Bug ID: 15464
Summary: -Wunused-member-function should probably not fire in
this code
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
We warn at
typedef struct {
int foo() { return 0; }
} *A;
but such code can be put in a header file (the inline function is not emitted)
and foo can still be used from a .cpp file that includes the header:
typedef struct {
int foo() { return 0; }
} *A;
extern "C" void f(A x) {
x->foo();
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs