[LLVMbugs] [Bug 11540] New: Crash with -std=c++11, compiling cast-to-void* of cast-to-integer function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 11 19:53:02 PST 2011


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

             Bug #: 11540
           Summary: Crash with -std=c++11, compiling cast-to-void* of
                    cast-to-integer function
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jwalden+llvm at mit.edu
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7714
  --> http://llvm.org/bugs/attachment.cgi?id=7714
Compiler output when attempting to compile testcase

Compiling this with -std=c++11 (on an x86-64 system, I de-aliased uintptr_t
while minimizing) crashes Clang from earlier today:

  void fun() { }

  void cast()
  {
    (void*)(unsigned long int)fun;
  }

This is a regression from sometime in the last couple weeks or so.  Commandline
spew and such are attached.

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