[LLVMbugs] [Bug 7510] New: VS2010 porting issues

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jun 27 04:17:01 PDT 2010


           Summary: VS2010 porting issues
           Product: new-bugs
           Version: 2.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: scf370 at gmail.com
                CC: llvmbugs at cs.uiuc.edu

There are changes i've made to source distribution to compile it in VS2010
(after CMake):

1. Compiler no longer supports casting integers to pointers, so std::pair<A,
B*>(a, 0) does not work anymore. Portable solution is std::pair<A, B*>(a,
(B*)0), 'с++0х standard' solution is std::pair<A, B*>(a, nullptr)

2. There is std::next, so llvm's next should be prefixed with namespace:

3. Intrinsics::setjmp crutch does not work because now Intrinsics.h is included
AFTER setjmp.h. Solution: add same crutch inside Intrinsics.h

4. std::set::insert is now template method thus autocast by private constructor
does not work anymore:
class A {
  class B {
    friend class A;
    B(const C&){};
  std::set<B> set;
  C c;
  set.insert(c); //fail, should be: set.insert(B(c));

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