[LLVMbugs] [Bug 14287] New: fixit to insert "template<>" is in the wrong place

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 7 16:27:47 PST 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list