[LLVMbugs] [Bug 11040] New: Crash in ICE evaluation with cast to rvalue reference

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 29 13:48:57 PDT 2011


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

           Summary: Crash in ICE evaluation with cast to rvalue reference
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Testcase:
const int x = 10;
int* y = reinterpret_cast<char&>(x);

Looks like the cast checking in CheckICE needs to be tightened up a bit.

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