[LLVMbugs] [Bug 14232] New: Clang crashes comparing unsigned short to enum value

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 31 15:56:52 PDT 2012


             Bug #: 14232
           Summary: Clang crashes comparing unsigned short to enum value
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ryan.molden at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 9479
  --> http://llvm.org/bugs/attachment.cgi?id=9479
Crash repro

Attached repro seems to be minimal. Comparing directly to 13 instead of enum
value does not crash, static_casting enum value to unsigned short, int, in
comparison does not crash.

 "c:/llvm_build/bin/Debug/clang.exe" -cc1 -triple i686-pc-win32 -emit-obj
-mrelax-all -disable-free -main-file-name atl_crash.cpp -mrelocation-model
static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -momit-leaf-frame-pointer Files\\Microsoft Visual Studio
10.0\\VC\\INCLUDE" Files\\Microsoft Visual Studio 10.0\\VC\\ATLMFC\\INCLUDE"
Files\\Microsoft SDKs\\Windows\\v7.0A\\include" -std=c++11 -fdeprecated-macro
-ferror-limit 19 -fmessage-length 80 -mstackrealign -fms-extensions
-fms-compatibility -fmsc-version=1300 -fdelayed-template-parsing
-fobjc-runtime=gcc -fobjc-default-synthesize-properties -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -x 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