[llvm-bugs] [Bug 47236] New: Assertion failed: (FromType->isIntegralOrUnscopedEnumerationType()), function getNarrowingKind, file /usr/src/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp, line 422.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 19 07:21:31 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47236

            Bug ID: 47236
           Summary: Assertion failed:
                    (FromType->isIntegralOrUnscopedEnumerationType()),
                    function getNarrowingKind, file
                    /usr/src/contrib/llvm-project/clang/lib/Sema/SemaOverl
                    oad.cpp, line 422.
           Product: clang
           Version: 11.0
          Hardware: Other
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++17
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pkubaj at anongoth.pl
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

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 https://bugs.freebsd.org/submit/ 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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200819/0188b1b9/attachment.html>


More information about the llvm-bugs mailing list