<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 - Assertion failed: (isScalarType()), function getScalarTypeKind, file /usr/src/contrib/llvm-project/clang/lib/AST/Type.cpp, line 2146."
   href="https://bugs.llvm.org/show_bug.cgi?id=47676">47676</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed: (isScalarType()), function getScalarTypeKind, file /usr/src/contrib/llvm-project/clang/lib/AST/Type.cpp, line 2146.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>11.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>Backend: PowerPC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>pkubaj@anongoth.pl
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, nemanja.i.ibm@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>FreeBSD head, LLVM 11.0.0-rc2-91-g6e042866c30, powerpc64le

Test case:
template <typename e> void f() {
  e a;
  (__vector int)(a);
}

Build with:
/usr/bin/c++ -cc1 -triple powerpc64le-unknown-freebsd13.0 -emit-obj
-disable-free -target-cpu ppc64le lut-690b16.cpp

Result:
Assertion failed: (isScalarType()), function getScalarTypeKind, file
/usr/src/contrib/llvm-project/clang/lib/AST/Type.cpp, line 2146.
PLEASE submit a bug report to <a href="https://bugs.freebsd.org/submit/">https://bugs.freebsd.org/submit/</a> and include the
crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/c++ -cc1 -triple
powerpc64le-unknown-freebsd13.0 -emit-obj -disable-free -target-cpu ppc64le
lut-690b16.cpp 
1.      lut-690b16.cpp:3:20: current parser token ';'
2.      lut-690b16.cpp:1:32: parsing function body 'f'
3.      lut-690b16.cpp:1:32: in compound statement ('{}')
#0 0x0000000013ffdea8 (/usr/bin/c+++0x13ffdea8)
#1 0x0000000013ffb588 (/usr/bin/c+++0x13ffb588)
#2 0x0000000013ffe9f8 (/usr/bin/c+++0x13ffe9f8)
#3 0x0000000815dc76f4 (/lib/libthr.so.3+0x2f6f4)
Abort trap (core dumped)</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>