http://llvm.org/bugs/show_bug.cgi?id=10268

           Summary: poor location for type mismatch diagnostic
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


I got this today:


LinkModules.cpp:419:11: error: no matching function for call to
      'LinkAppendingVars'
      if (LinkAppendingVars(DGV, SGV, ValueMap, Error)) return true;
          ^~~~~~~~~~~~~~~~~
LinkModules.cpp:278:13: note: candidate function not viable: cannot convert
      from base class pointer 'llvm::GlobalValue *' to derived class pointer
      'llvm::GlobalVariable *' for 1st argument
static bool LinkAppendingVars(GlobalVariable *DstGV, GlobalVariable *SrcGV,
            ^

Why is it pointing to and underlining "LinkAppendingVars"?  It should point to
the function and underline the "1st argument".  Likewise, the note should point
to the first argument (DstGV) as well.

-Chris

-- 
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

Reply via email to