<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 when building opencflite"
href="https://bugs.llvm.org/show_bug.cgi?id=38615">38615</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang crashes when building opencflite
</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>enhancement
</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>manojgupta@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llozano@chromium.org, llvm-bugs@lists.llvm.org, manojgupta@google.com, ruiu@google.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20735" name="attach_20735" title="Preprocessed file">attachment 20735</a> <a href="attachment.cgi?id=20735&action=edit" title="Preprocessed file">[details]</a></span>
Preprocessed file
Clang is crashing when building opencflite
(<a href="https://github.com/nevali/opencflite">https://github.com/nevali/opencflite</a>)
The crash happens at this line:
lib/CodeGen/CodeGenModule.cpp
llvm::GlobalValue *GV = cast<llvm::GlobalValue>(
CreateRuntimeVariable(Ty, "__CFConstantStringClassReference"));
The source code already has a variable with the name
__CFConstantStringClassReference.
<a href="https://github.com/nevali/opencflite/blob/03999700cf3b79975ae2f2e5f4100ea7096acb3a/CFInternal.h#L364">https://github.com/nevali/opencflite/blob/03999700cf3b79975ae2f2e5f4100ea7096acb3a/CFInternal.h#L364</a>
extern int __CFConstantStringClassReference[];
I am not sure if this a clang bug or an issue in opencflite by using a variable
of name __CFConstantStringClassReference. But clang should not crash on it.</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>