Re: @forceInline can't inline when source code is available

2015-05-27 Thread Iain Buclaw via D.gnu
On 28 May 2015 04:15, "Mike via D.gnu" wrote: > > Consider this code > > testInline.d > > module testInline; > > import gcc.attribute; > > public enum inline = gcc.attribute.attribute("forceinline"); > > @inline int add(int a, int b) > { > return a + b; > } > > test.d > ** > i

Re: @forceInline can't inline when source code is available

2015-05-27 Thread ketmar via D.gnu
On Thu, 28 May 2015 02:12:10 +, Mike wrote: > Shouldn't it be able to inline the "add" function since the source code > is there in the testInline.d file? Should I file a bug? actually, the code is not available, as ".d" file is treated like ".di" file here, i.e. file with only interface de