[LLVMbugs] [Bug 9391] New: -Wunused-function complains about unused deleted functions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 3 09:15:37 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9391
Summary: -Wunused-function complains about unused deleted
functions
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
$ echo 'namespace { void f() = delete; }' | clang++ -x c++ -std=c++0x
-fsyntax-only -Wunused-function -
<stdin>:1:18: warning: unused function 'f' [-Wunused-function]
namespace { void f() = delete; }
^
1 warning generated.
Oops! Deleted functions are /supposed/ to be unused!
--
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