[LLVMbugs] [Bug 6506] New: Ambiguous calls to llvm::next.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 5 00:45:29 PST 2010


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

           Summary: Ambiguous calls to llvm::next.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P5
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ahmedcharles at gmail.com
                CC: llvmbugs at cs.uiuc.edu


C++0x adds std::next (and std::prev). std::next conflicts with llvm::next when
used on a type within the std namespace because of ADL. Explicitly qualifying
these calls will result in the ambiguity being resolved, in favor of the llvm::
version.

lib/CodeGen/Spiller.cpp:442
lib/CodeGen/Spiller.cpp:443
lib/Transforms/Scalar/LoopStrengthReduce.cpp:2820

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