http://llvm.org/bugs/show_bug.cgi?id=14287
Bug #: 14287
Summary: fixit to insert "template<>" is in the wrong place
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Nicos-MacBook-Pro:clang thakis$ cat tmpl.cc
template <class T>
void myFunctionTemplate(T t) { }
void myFunctionTemplate<char>();
Nicos-MacBook-Pro:clang thakis$ ../../Release+Asserts/bin/clang -c tmpl.cc
ActOnStartOfFunctionTemplateDef
tmpl.cc:4:6: error: template specialization requires 'template<>'
void myFunctionTemplate<char>();
^ ~~~~~~
template<>
Note that clang suggests inserting template<> after void instead of before it.
--
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