---------------------- 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
(In reply to Johannes Pfau from comment #0) seems to be fixed in recent commits (or never appears with gcc-4.9). i'm using gcc-4.9 on x86 (built from snapshot from 17 apr) and gdc git from 15 apr, everything works ok and the code was correctly inlined (i checked this with objdump disassembly).
It is still present.
(In reply to Iain Buclaw from comment #2) > It is still present. can't reproduce though. maybe this due to the fact i built gdc with --enable-checks=release.
Can't reproduce anymore.