[LLVMbugs] [Bug 13210] New: Provide better diagnostics for the case where a template class name is used without the template argument
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jun 25 19:02:13 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13210
Bug #: 13210
Summary: Provide better diagnostics for the case where a
template class name is used without the template
argument
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ehsan at mozilla.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
ehsanakhgari:/tmp [10:02:02]$ cat test.cpp
template <class T>
class C{};
void f() {
new C();
}
ehsanakhgari:/tmp [10:02:23]$ clang++ -c test.cpp
test.cpp:5:7: error: expected a type
new C();
^
1 error generated.
We could indicate that C is a template class name, and requires a template
argument.
--
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