<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang crash-on-invalid "comparison with mismatched types""
   href="http://llvm.org/bugs/show_bug.cgi?id=15537">15537</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crash-on-invalid "comparison with mismatched types"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lists@eitanadler.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10195" name="attach_10195" title="testcase">attachment 10195</a> <a href="attachment.cgi?id=10195&action=edit" title="testcase">[details]</a></span>
testcase

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
105731/clang)]
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
invocation)
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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>