www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 120] New: Inlining of some functions fails (arrays with

Date: Tue, 15 Apr 2014 15:04:33 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"


            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];

 attribute("forceinline") void testArr(const(int)[] 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.
Apr 15 2014