http://llvm.org/bugs/show_bug.cgi?id=8382
Summary: wrong diagnostic on missing template arguments
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Consider this testcase:
template <class T>
class Foo {};
class Bar : public Foo {};
the diagnostic clang produces is:
b2973185.cc:3:20: error: expected class name
class Bar : public Foo {};
^
1 error generated.
which isn't quite right; Foo is a class name, so what's wrong here? It's that
Foo is a template and I didn't specify the template arguments. It'd be great if
clang pointed that out.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs