[LLVMbugs] [Bug 12273] New: Missing template keyword gives "expected expression" instead of fix-it to add template keyword.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 15 13:46:11 PDT 2012
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: unassignedbugs at nondot.org
ReportedBy: rtrieu at google.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list