<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: (FromType->isIntegralOrUnscopedEnumerationType()), function getNarrowingKind, file /usr/src/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp, line 422."
href="https://bugs.llvm.org/show_bug.cgi?id=47236">47236</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failed: (FromType->isIntegralOrUnscopedEnumerationType()), function getNarrowingKind, file /usr/src/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp, line 422.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>C++17
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pkubaj@anongoth.pl
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>FreeBSD head, LLVM 11.0.0-rc1-47-gff47911ddfc, powerpc, powerpc64 and
powerpcspe
Reduced test case:
enum a : enum class b c b d {
a { d }
Compile with:
/usr/bin/c++ -cc1 -triple powerpc64-unknown-freebsd13.0 -std=gnu++17 test.cpp
Result:
Assertion failed: (FromType->isIntegralOrUnscopedEnumerationType()), function
getNarrowingKind, file
/usr/src/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp, line 422.
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
powerpc64-unknown-freebsd13.0 -std=gnu++17 test.cpp
1. <eof> parser at end of file
#0 0x0000000014059b9c PrintStackTrace
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13
#1 0x00000000140572ec RunSignalHandlers
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:67:5
#2 0x000000001405a7a8 SignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
#3 0x0000000815d4f860 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:303:3
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>