[Bug 120] New: Inlining of some functions fails (arrays with qualified element types)

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Tue Apr 15 07:04:33 PDT 2014


http://bugzilla.gdcproject.org/show_bug.cgi?id=120

            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 at gdcproject.org
          Reporter: johannespfau at 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

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20140415/a4337e7f/attachment.html>


More information about the D.gnu mailing list