[LLVMbugs] [Bug 12287] New: Add name resolution fixup for calling overloaded function outside of method scope

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 16 15:55:57 PDT 2012


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

             Bug #: 12287
           Summary: Add name resolution fixup for calling overloaded
                    function outside of method scope
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: pete.cooper at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


In the following case the compiler should issue a fixup to insert :: before the
call to foo as the function in global scope matches the argument lookup whereas
the 'foo' in the class scope doesn't.

class A {
 void foo(bool);
};

void foo(int);

void A::foo(bool) {
 foo(3);
}

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