<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 - Clang++ crashes on assertion when compiling source"
href="https://bugs.llvm.org/show_bug.cgi?id=36255">36255</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang++ crashes on assertion when compiling source
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>isoa@kapsi.fi
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19819" name="attach_19819" title="Pre-processed source file and run-script related to the crash">attachment 19819</a> <a href="attachment.cgi?id=19819&action=edit" title="Pre-processed source file and run-script related to the crash">[details]</a></span>
Pre-processed source file and run-script related to the crash
I am not very knowledgeable how Clang works and thus I am unable to give any
hints what exactly went wrong.
Attached are the pre-processed source and run-script.
clang version 7.0.0
Target: x86_64-portbld-freebsd11.1
Thread model: posix
InstalledDir: /usr/local/llvm-devel/bin
And here is the crash backtrace:
Assertion failed: (Info.Ctx.hasSameType(BaseIt->getType(), BaseType) && "base
class initializers not in expected order"), function HandleConstructorCall,
file
/wrkdirs/usr/ports/devel/llvm-devel/work/llvm-4f82436e1ddfde29383d98790bbac9de3612f092/tools/clang/lib/AST/ExprConstant.cpp,
line 4383.
#0 0x0000000001e777f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/llvm-devel/bin/clang-7.0+0x1e777f8)
#1 0x0000000001e77e16 (/usr/local/llvm-devel/bin/clang-7.0+0x1e77e16)
#2 0x0000000804fe2926 (/lib/libthr.so.3+0xe926)
#3 0x0000000804fe1ecf (/lib/libthr.so.3+0xdecf)
Stack dump:
0. Program arguments: /usr/local/llvm-devel/bin/clang-7.0 -cc1 -triple
x86_64-portbld-freebsd11.1 -emit-obj -mrelax-all -disable-free -main-file-name
meta.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-dwarf-column-info -debugger-tuning=gdb -resource-dir
/usr/local/llvm-devel/lib/clang/7.0.0 -I include -internal-isystem
/usr/include/c++/v1 -pedantic --std=c++1z -fdeprecated-macro
-fdebug-compilation-dir /home/dev/projects/c++/meta -ferror-limit 19
-fmessage-length 113 -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/meta-84dcf9.o -x c++
meta.cpp
1. <eof> parser at end of file
2. meta.cpp:278:5: LLVM IR generation of declaration 'main'
3. meta.cpp:278:5: Generating code for declaration 'main'
clang-7.0: error: unable to execute command: Abort trap (core dumped)
clang-7.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 7.0.0
Target: x86_64-portbld-freebsd11.1
Thread model: posix
InstalledDir: /usr/local/llvm-devel/bin
clang-7.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-7.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-7.0: note: diagnostic msg: /tmp/meta-e36efc.cpp
clang-7.0: note: diagnostic msg: /tmp/meta-e36efc.sh
clang-7.0: note: diagnostic msg:
********************</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>