[LLVMbugs] [Bug 9304] New: Assertion failed: (ConstantCondValue.getBitWidth() == CondWidth && ConstantCondValue.isSigned() == CondIsSigned), function ActOnFinishSwitchStmt, file /a/portbuild/amd64/9/builds/20110221064547.pointyhat-west/src/lib/clang/libclangsema/../../../contrib/ll

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 23 10:55:38 PST 2011


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

           Summary: Assertion failed: (ConstantCondValue.getBitWidth() ==
                    CondWidth && ConstantCondValue.isSigned() ==
                    CondIsSigned), function ActOnFinishSwitchStmt, file
                    /a/portbuild/amd64/9/builds/20110221064547.pointyhat-w
                    est/src/lib/clang/libclangsema/../../../contrib/ll
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


pes delta$ clang++ glue.cc
glue.cc:3:4: warning: switch condition has boolean value
                        switch (sizeof(click_rfc1483) == 8) {
                        ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~
Assertion failed: (ConstantCondValue.getBitWidth() == CondWidth &&
ConstantCondValue.isSigned() == CondIsSigned), function ActOnFinishSwitchStmt,
file SemaStmt.cpp, line 591.
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.1 -emit-obj -mrelax-all -disable-free -main-file-name
glue.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.15 -momit-leaf-frame-pointer -resource-dir /usr/local/bin/../lib/clang/2.9
-ferror-limit 19 -fmessage-length 152 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-Aez8g4.o -x c++
glue.cc 
1.      glue.cc:5:3: current parser token '}'
2.      glue.cc:1:2: parsing struct/union/class body 'click_rfc1483'
3.      glue.cc:2:36: parsing function body 'click_check_header_sizes'
4.      glue.cc:2:36: in compound statement ('{}')
clang: error: unable to execute command: Abort trap: 6 (core dumped)
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

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