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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to