[LLVMbugs] [Bug 11702] New: Low-quality diagnostic with block literal + trailing return type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 3 20:36:11 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11702
Bug #: 11702
Summary: Low-quality diagnostic with block literal + trailing
return type
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:
void (^a)() = ^() -> void {};
Gives the following diagnostic:
error: function with trailing return type must specify return type 'auto', not
'<dependent type>'
1 error generated.
This diagnostic is rather confusing, and doesn't actually point at anything.
--
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