D.gnu - [Bug 120] New: Inlining of some functions fails (arrays with
- gdc-bugzilla gdcproject.org (37/37) Apr 15 2014 Date: Tue, 15 Apr 2014 15:04:33 +0100
Date: Tue, 15 Apr 2014 15:04:33 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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 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 -- You are receiving this mail because: You are watching all bug changes.
Apr 15 2014