<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 Crash on malformed input"
href="https://llvm.org/bugs/show_bug.cgi?id=31146">31146</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang Crash on malformed input
</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>Linux
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>charles_li@playstation.sony.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17640" name="attach_17640" title="run script">attachment 17640</a> <a href="attachment.cgi?id=17640&action=edit" title="run script">[details]</a></span>
run script
We came across a Clang ICE on malformed input while reducing the test-case of
a separate problem.
This ICE does not appear to be a regression.
I can reproduced this ICE since SVN revision 240000.
Here is the test
$ cat t.cpp
template<class Alpha,
class Bravo,
class Charlie
: public Delta<Alpha, Bravo, Echo>
: Delta<Alpha, Bravo, Echo>(Foxtrot(Golf), Hotel)
{
explicit Charlie(const India& _Str, size_t Hotel = 0)
{
Here are the relevant error messages from the crash dump
$ clang++ -c t.cpp
clang-4.0: /home/chli/Source/usvn/llvm/tools/clang/lib/Sema/SemaInit.cpp:6296:
clang::ExprResult clang::InitializationSequence::Perform(clang::Sema&, const
clang::InitializedEntity&, const clang::InitializationKind&,
clang::MultiExprArg, clang::QualType*):
Assertion `Kind.getKind() == InitializationKind::IK_Copy ||
Kind.isExplicitCast() || Kind.getKind() == InitializationKind::IK_DirectList'
failed.
.....
Stack dump:
1. t.cpp:8:5: current parser token '{'
2. t.cpp:3:2: parsing struct/union/class body 'Charlie'
clang-4.0: error: unable to execute command: Aborted (core dumped)
clang-4.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 4.0.0 (trunk 284398)
Target: x86_64-unknown-linux-gnu
Thread model: posix
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-4.0: note: diagnostic msg: /tmp/t-9920bc.cpp
clang-4.0: note: diagnostic msg: /tmp/t-9920bc.sh</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>