<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: (CAT && "unexpected type for array initializer"), function VisitCXXNewExpr, file clang/lib/AST/ExprConstant.cpp, line 8690."
href="https://bugs.llvm.org/show_bug.cgi?id=45279">45279</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failed: (CAT && "unexpected type for array initializer"), function VisitCXXNewExpr, file clang/lib/AST/ExprConstant.cpp, line 8690.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>10.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>LLVM Codegen
</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>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23272" name="attach_23272" title="reproduction files">attachment 23272</a> <a href="attachment.cgi?id=23272&action=edit" title="reproduction files">[details]</a></span>
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 (<a href="mailto:git@github.com">git@github.com</a>: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
<a href="https://bugs.freebsd.org/submit/">https://bugs.freebsd.org/submit/</a> 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.</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>