<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 --- - Assertion fail at lib/AST/Decl.cpp:1856"
href="http://llvm.org/bugs/show_bug.cgi?id=22849">22849</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion fail at lib/AST/Decl.cpp:1856
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>viniciustinti@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>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=14010" name="attach_14010" title="Example file core.c and build.log">attachment 14010</a> <a href="attachment.cgi?id=14010&action=edit" title="Example file core.c and build.log">[details]</a></span>
Example file core.c and build.log
Clang fails to build the example core.c code with:
core.c:17:930: error: non-const static data member must be initialized out of
line
In debug mode it gives an assertion fail.
lib/AST/Decl.cpp:1856: bool isDeclExternC(const T &) [T = clang::VarDecl]:
Assertion `D.getASTContext().getLangOpts().CPlusPlus' failed.</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>