[LLVMbugs] [Bug 11747] New: clang incorrectly rejects reinterpret_cast<int>(0)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 11 14:46:51 PST 2012


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

             Bug #: 11747
           Summary: clang incorrectly rejects reinterpret_cast<int>(0)
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Testcase:
int x = reinterpret_cast<int>(0);

As far as I can tell, this is legal per C++11 [expr.reinterpret.cast]p2.

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