[LLVMbugs] [Bug 15537] New: clang crash-on-invalid "comparison with mismatched types"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 18 10:14:03 PDT 2013


            Bug ID: 15537
           Summary: clang crash-on-invalid "comparison with mismatched
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lists at eitanadler.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10195
  --> http://llvm.org/bugs/attachment.cgi?id=10195&action=edit

When compiling the attached testcase I get the following assertion failure:

gdb> run x.ii
Starting program: /home/eitan/svn/clang/pfx/bin/clang x.ii
(no debugging symbols found)...[New LWP 105731]
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...[New Thread 805007400 (LWP
Assertion failed: (S.Context.hasSameUnqualifiedType(T, E->getRHS()->getType())
&& "comparison with mismatched types"), function AnalyzeComparison, file
/home/eitan/svn/clang/llvm/tools/clang/lib/Sema/SemaChecking.cpp, line 4518.
Stack dump:
0.      Program arguments: /home/eitan/svn/clang/pfx/bin/clang -cc1 -triple
x86_64-unknown-freebsd9.1 -emit-obj -mrelax-all -disable-free -main-file-name
x.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.17.50 -momit-leaf-frame-pointer -resource-dir
/home/eitan/svn/clang/pfx/bin/../lib/clang/3.3 -fdeprecated-macro
-fdebug-compilation-dir /home/eitan/working-reproduce-case/md -ferror-limit 19
-fmessage-length 211 -mstackrealign -fobjc-runtime=gnustep
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o /tmp/x-WNfP4s.o -x c++-cpp-output x.ii 
1.      x.ii:3:34: current parser token '{'
2.      x.ii:2:34: parsing function body 'delayatzero'
3.      x.ii:2:34: in compound statement ('{}')
clang: error: unable to execute command: Abort trap: 6 (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
clang version 3.3 (trunk 176767) (llvm/trunk 176769)
Target: x86_64-unknown-freebsd9.1
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

Program exited with code 0376.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130318/d9f94199/attachment.html>

More information about the llvm-bugs mailing list