| Bug ID | 120 |
|---|---|
| Summary | Inlining of some functions fails (arrays with qualified element types) |
| Product | GDC |
| Version | development |
| Hardware | All |
| OS | All |
| Status | NEW |
| Severity | normal |
| Priority | Normal |
| Component | gdc |
| Assignee | ibuclaw@gdcproject.org |
| Reporter | johannespfau@gmail.com |
----------------------
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
http://forum.dlang.org/thread/mailman.75.1396605155.19942.d.gnu@puremagic.com