<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 --- - Trunk clang crashes with weird catch expression"
   href="http://llvm.org/bugs/show_bug.cgi?id=21252">21252</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Trunk clang crashes with weird catch expression
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mclow.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ totclang --version
clang version 3.6.0 (trunk 219579)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
$ cat boom.cpp
#include <iostream>

int main() {
    try { throw "ABC"; }
//  catch (std::string)       { std::cout << "Caught string" << std::endl; }
    catch (char const (&)[4]) { std::cout << "Caught char const [4]" <<
std::endl; }
//  catch (char *)            { std::cout << "Caught char *" << std::endl; }
//  catch (const char *)      { std::cout << "Caught const char *" <<
std::endl; }
    catch (...)               { std::cout << "caught: ..." << std::endl; }
    }

$ totclang boom.cpp
Assertion failed: (!Ty.hasQualifiers() && "RTTI info cannot have top-level
qualifiers"), function mangleCXXRTTI, file
/Sources/LLVM/llvm/tools/clang/lib/AST/ItaniumMangle.cpp, line 3880.
0  clang                    0x00000001071b96ab void
std::__1::seed_seq::generate<unsigned int*>(unsigned int*, unsigned int*) +
12155
1  clang                    0x00000001071b9e4b void
std::__1::seed_seq::generate<unsigned int*>(unsigned int*, unsigned int*) +
14107
2  libsystem_platform.dylib 0x00007fff908bd5aa _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 1869884016
4  clang                    0x00000001071b9bb6 void
std::__1::seed_seq::generate<unsigned int*>(unsigned int*, unsigned int*) +
13446
5  clang                    0x00000001071b9b91 void
std::__1::seed_seq::generate<unsigned int*>(unsigned int*, unsigned int*) +
13409
6  clang                    0x0000000105ecc6b5
std::__1::__tree<std::__1::__value_type<void const*, clang::APValue>,
std::__1::__map_value_compare<void const*, std::__1::__value_type<void const*,
clang::APValue>, std::__1::less<void const*>, true>,
std::__1::allocator<std::__1::__value_type<void const*, clang::APValue> >
<span class="quote">>::destroy(std::__1::__tree_node<std::__1::__value_type<void const*,</span >
clang::APValue>, void*>*) + 7605
.... and much more.</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>