[LLVMbugs] [Bug 17585] New: Diagnostics for template keywords showing up inside local classes aren't good
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 14 17:17:08 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17585
Bug ID: 17585
Summary: Diagnostics for template keywords showing up inside
local classes aren't good
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
consider:
void foo() {
template <typename> int i;
}
we issue:
error: expected expression
gcc provides a better error:
error: a template declaration cannot appear at block scope
another case:
void foo() {
struct S { template <typename> int i; };
}
we issue:
error: member 'i' declared as a template
gcc provides:
invalid declaration of member template in local class
These plain english messages are very nice, we should do something similar.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131015/2e51d783/attachment.html>
More information about the llvm-bugs
mailing list