<html>
<head>
<base href="http://bugzilla.gdcproject.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 - Inlining of some functions fails (arrays with qualified element types)"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=120">120</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Inlining of some functions fails (arrays with qualified element types)
</td>
</tr>
<tr>
<th>Product</th>
<td>GDC
</td>
</tr>
<tr>
<th>Version</th>
<td>development
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>gdc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>ibuclaw@gdcproject.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>johannespfau@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>----------------------
import gcc.attribute;
import std.stdio;
void main()
{
int[] arr = [1,2,3];
testArr(arr);
}
@attribute("forceinline") void testArr(const(int)[] a)
{
writeln(a);
}
----------------------
/opt/gdc/bin/gdc test.d -finline -O1 -S
test.d:11: error: inlining failed in call to always_inline 'testArr':
mismatched arguments
<a href="http://forum.dlang.org/thread/mailman.75.1396605155.19942.d.gnu@puremagic.com">http://forum.dlang.org/thread/mailman.75.1396605155.19942.d.gnu@puremagic.com</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>