[LLVMbugs] [Bug 12064] New: clang marks globals as used in lambda in unused default argument
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Feb 21 17:22:11 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12064
Bug #: 12064
Summary: clang marks globals as used in lambda in unused
default argument
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
template<typename T> T f() { return "Cause Error"; }
void g(void (*)() = []{ return f<void>(); });
As far as I can tell, this shouldn't cause an error, although the standard
isn't especially clear here...
--
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