<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 --- - struct array duplication"
href="http://llvm.org/bugs/show_bug.cgi?id=16465">16465</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>struct array duplication
</td>
</tr>
<tr>
<th>Product</th>
<td>dragonegg
</td>
</tr>
<tr>
<th>Version</th>
<td>3.2
</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>baldrick@free.fr
</td>
</tr>
<tr>
<th>Reporter</th>
<td>15026edff505@b04e8d0e182e.anonbox.net
</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=10776" name="attach_10776" title="test case">attachment 10776</a> <a href="attachment.cgi?id=10776&action=edit" title="test case">[details]</a></span>
test case
A struct:
struct s_t {
int a;
int b;
int c;
s_t *next;
int d;
int e;
char arr[4];
};
gets translated into (-O0):
%struct.s_t = type { i32, i32, i32, %struct.s_t*, i32, i32, [4 x i8], [4 x i8]
}
with two arrays (arr) instead of one. Clang creates:
%struct.s_t = type { i32, i32, i32, %struct.s_t*, i32, i32, [4 x i8] }</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>