<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 --- - Crash when compiling hash.c from libcxx."
   href="http://llvm.org/bugs/show_bug.cgi?id=18643">18643</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash when compiling hash.c from libcxx.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>rich@pennware.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=11958" name="attach_11958" title="Shell script and preprocessed source">attachment 11958</a> <a href="attachment.cgi?id=11958&action=edit" title="Shell script and preprocessed source">[details]</a></span>
Shell script and preprocessed source

I get this with r200312:

[~] dev% sh hash-1af83f.sh
clang: /home/rich/llvm/lib/Analysis/LoopInfo.cpp:355: void
llvm::Loop::getUniqueExitBlocks(llvm::SmallVectorImpl<llvm::BasicBlock*>&)
const: Assertion `hasDedicatedExits() && "getUniqueExitBlocks assumes the loop
has canonical form exits!"' failed.
0  clang           0x0000000002437b02 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang           0x0000000002437724
2  libpthread.so.0 0x0000003ca800f750
3  libc.so.6       0x0000003ca7835c59 gsignal + 57
4  libc.so.6       0x0000003ca7837368 abort + 328
5  libc.so.6       0x0000003ca782ebb6
6  libc.so.6       0x0000003ca782ec62
7  clang           0x00000000021dbb9e
8  clang           0x0000000001fc57b5
9  clang           0x00000000021e6b8f
llvm::LPPassManager::runOnFunction(llvm::Function&) + 1439
10 clang           0x00000000023285ff
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
11 clang           0x000000000214cef5
12 clang           0x0000000002328e0d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 797
13 clang           0x000000000087dcb0
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
2784
14 clang           0x0000000000879626
15 clang           0x0000000000a1a2cb clang::ParseAST(clang::Sema&, bool, bool)
+ 507
16 clang           0x000000000087a03b clang::CodeGenAction::ExecuteAction() +
59
17 clang           0x00000000006e6619 clang::FrontendAction::Execute() + 249
18 clang           0x00000000006c4db0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 352
19 clang           0x00000000006ace91
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1857
20 clang           0x00000000006a6838 cc1_main(char const**, char const**, char
const*, void*) + 1208
21 clang           0x00000000006853ea main + 666
22 libc.so.6       0x0000003ca7821d65 __libc_start_main + 245
23 clang           0x00000000006a55dd
Stack dump:
0.      Program arguments: /home/rich/llvm-dir/bin/clang -cc1 -triple
armv7eb-ellcc-linux-eabi -S -disable-free -main-file-name hash.cpp
-mrelocation-model static -mdisable-fp-elim -fmath-errno -mconstructor-aliases
-target-feature +soft-float-abi -target-feature +vfp2 -target-feature -neon
-target-abi aapcs -mfloat-abi soft -target-linker-version 2.23.2
-sys-header-deps -D _XOPEN_SOURCE=700 -D _GNU_SOURCE -D dl_info=Dl_info -O1
-std=c++11 -fdeprecated-macro -fno-dwarf-directory-asm -ferror-limit 19
-fmessage-length 80 -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-slp -x c++ hash-1af83f.cpp 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module 'hash-1af83f.cpp'.
4.      Running pass 'Loop Pass Manager' on function
'@_ZNSt3__112__next_primeEj'
5.      Running pass 'Loop Invariant Code Motion' on basic block '%while.body'
hash-1af83f.sh: line 1: 16496 Aborted                
"/home/rich/llvm-dir/bin/clang" -cc1 -triple armv7eb-ellcc-linux-eabi -S
-disable-free -main-file-name hash.cpp -mrelocation-model static
-mdisable-fp-elim -fmath-errno -mconstructor-aliases -target-feature
+soft-float-abi -target-feature +vfp2 -target-feature -neon -target-abi aapcs
-mfloat-abi soft -target-linker-version 2.23.2 -sys-header-deps -D
"_XOPEN_SOURCE=700" -D "_GNU_SOURCE" -D "dl_info=Dl_info" -O1 -std=c++11
-fdeprecated-macro -fno-dwarf-directory-asm -ferror-limit 19 -fmessage-length
80 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -x
c++ hash-1af83f.cpp
[~] dev%</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>