[LLVMbugs] [Bug 8841] New: Spurious "unused function" diagnostic with inline friend definition
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Dec 21 13:57:26 PST 2010
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: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list