<html>
<head>
<base href="http://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 3.5.0 exits with assertion and stackdump after detecting errors in member template decl in vararg template specialization"
href="http://llvm.org/bugs/show_bug.cgi?id=21149">21149</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang 3.5.0 exits with assertion and stackdump after detecting errors in member template decl in vararg template specialization
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>C++11
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vukki.starborn@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13132" name="attach_13132" title="code, clang out (messages and backtrace) and temp files">attachment 13132</a> <a href="attachment.cgi?id=13132&action=edit" title="code, clang out (messages and backtrace) and temp files">[details]</a></span>
code, clang out (messages and backtrace) and temp files
clang 3.5.0 exits with failed assertion
clang-3.5:
/home/vukki/clang_3.5_src/llvm-3.5.0.src/tools/clang/lib/AST/DeclBase.cpp:88:
void clang::Decl::setInvalidDecl(bool): Assertion `!isa<TagDecl>(this) ||
!cast<TagDecl>(this)->isCompleteDefinition()' failed.
0 clang-3.5 0x09bbd382 llvm::sys::PrintStackTrace(_IO_FILE*) + 50
1 clang-3.5 0x09bbd5d5
2 clang-3.5 0x09bbcf38
3 linux-gate.so.1 0xb77a4400 __kernel_sigreturn + 0
4 linux-gate.so.1 0xb77a4424 __kernel_vsyscall + 16
5 libc.so.6 0xb745831f gsignal + 79
6 libc.so.6 0xb7459c03 abort + 323
7 libc.so.6 0xb74510b7
8 libc.so.6 0xb7451167
9 clang-3.5 0x0b3d4f23 clang::Decl::setInvalidDecl(bool) + 145
10 clang-3.5 0x0af058d7
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 2855
after detecting error in this errorneous code:
template <typename... Arg>
struct Outer;
template <typename... Arg>
struct Outer<Arg...>
{
template <typename T>
struct Inner;
};
template <typename... Arg>
template <typename>
struct Outer<Arg...>::Inner<Arg...>
{
};
Outer<int,double,float> o;</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>