http://llvm.org/bugs/show_bug.cgi?id=8841
Summary: Spurious "unused function" diagnostic with inline
friend definition
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Compiling the attached source with
clang++ -Wunused excess-warning.ii
produces the spurious warnings:
/Volumes/Data/dgregor/Projects/llvm/tools/clang/lib/Sema/TreeTransform.h:3630:17:
warning:
unused function 'operator==' [-Wunused-function]
friend bool operator==(const TemplateArgumentLocContainerIterator &X,
^
/Volumes/Data/dgregor/Projects/llvm/tools/clang/lib/Sema/TreeTransform.h:3635:17:
warning:
unused function 'operator!=' [-Wunused-function]
friend bool operator!=(const TemplateArgumentLocContainerIterator &X,
^
In general, we probably shouldn't warn about inline friend definitions.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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