http://llvm.org/bugs/show_bug.cgi?id=12273
Bug #: 12273
Summary: Missing template keyword gives "expected expression"
instead of fix-it to add template keyword.
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
template <class T>
class Foo {
void get_int() { return T().get<1>(); }
void get_type() { return T().get<int>(); }
};
get.cc:3:38: error: expected expression
void get_int() { return T().get<1>(); }
^
get.cc:4:32: error: use 'template' keyword to treat 'get' as a dependent
template name
void get_type() { return T().get<int>(); }
^
template
2 errors generated.
Both errors have the same cause, missing a template keyword before get, but the
second error is much better.
--
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