[llvm-bugs] [Bug 45279] New: Assertion failed: (CAT && "unexpected type for array initializer"), function VisitCXXNewExpr, file clang/lib/AST/ExprConstant.cpp, line 8690.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 23 01:56:58 PDT 2020


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

            Bug ID: 45279
           Summary: Assertion failed: (CAT && "unexpected type for array
                    initializer"), function VisitCXXNewExpr, file
                    clang/lib/AST/ExprConstant.cpp, line 8690.
           Product: clang
           Version: 10.0
          Hardware: Other
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pkubaj at anongoth.pl
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Created attachment 23272
  --> https://bugs.llvm.org/attachment.cgi?id=23272&action=edit
reproduction files

FreeBSD head on powerpc64, LLVM 10 rc4.

When compiling sysutils/passwordsafe port, clang hits assertion failure:
Assertion failed: (CAT && "unexpected type for array initializer"), function
VisitCXXNewExpr, file
/usr/src/contrib/llvm-project/clang/lib/AST/ExprConstant.cpp, line 8690.
Stack dump:
0.      Program arguments: c++ -O2 -pipe -fstack-protector-strong
-fno-strict-aliasing -I/usr/local/include -fPIC -Wall -I.. -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -fPIC -Wall
-I.. -std=c++11 -DLINUX -O0 -g -ggdb -DUNICODE -DUSE_XML_LIBRARY=XERCES
-DWCHAR_INCOMPATIBLE_XMLCH -D_DEBUG -DDEBUG -DLINUX -O -DUNICODE
-DUSE_XML_LIBRARY=XERCES -DWCHAR_INCOMPATIBLE_XMLCH -DNDEBUG -c PWSprefs.cpp -o
../../obj/unicoderelease/core/PWSprefs.o
1.      PWSprefs.cpp:251:3: current parser token 'InitializePreferences'
2.      PWSprefs.cpp:236:1: parsing function body 'PWSprefs::PWSprefs'
3.      PWSprefs.cpp:236:1: in compound statement ('{}')
#0 0x0000000013bad7e8 PrintStackTrace
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13
#1 0x0000000013baaeb0 RunSignalHandlers
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:67:5
#2 0x0000000013bb0858 HandleCrash
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:75:7
#3 0x0000000013bb0acc CrashRecoverySignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:0:51
#4 0x0000000815733748 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:303:3
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 10.0.0 (git at github.com:llvm/llvm-project.git
llvmorg-10.0.0-rc4-5-g52c365aa9ca)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed
source, and associated run script.
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/PWSprefs-39dd4c.cpp
c++: note: diagnostic msg: /tmp/PWSprefs-39dd4c.sh
c++: note: diagnostic msg:

********************

This is a regression after 9.0.1. Reproduction files are attached.

-- 
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/20200323/4cf07706/attachment.html>


More information about the llvm-bugs mailing list