[LLVMbugs] [Bug 10268] New: poor location for type mismatch diagnostic

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 4 13:15:14 PDT 2011


           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: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

I got this today:

LinkModules.cpp:419:11: error: no matching function for call to
      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.


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