<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Unexpected signed integer or fixed point type: UNREACHABLE executed at ASTContext.cpp:9789!"
   href="https://bugs.llvm.org/show_bug.cgi?id=46748">46748</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unexpected signed integer or fixed point type: UNREACHABLE executed at ASTContext.cpp:9789!
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>11.0
          </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>enhancement
          </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>t.priesner@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23730" name="attach_23730" title="Preprocessed source file">attachment 23730</a> <a href="attachment.cgi?id=23730&action=edit" title="Preprocessed source file">[details]</a></span>
Preprocessed source file

Compiling the following (reduced) file with clang 11.0 (compiled from trunk)
causes clang to crash with the following message:

$ cat bug.cpp
void a() {
  wchar_t *b;
  b = (char*)v
}

Error (full error output attached):
Unexpected signed integer or fixed point type
UNREACHABLE executed at
/home/user/llvm-project/clang/lib/AST/ASTContext.cpp:9789!

Note: Clang version 10.0.0 just reports a compile error and doesn't crash.

Additional Information:

$ clang++ --version
clang version 11.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
e73d0b5719966ddbeff7a3da70a3cb782c3733ed)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/user/llvm-project/build/bin

$ cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20200710"</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>