Inlining problems again

Artur Skawina art.08.09 at gmail.com
Fri Apr 4 08:06:46 PDT 2014


On 04/04/14 15:42, Artur Skawina wrote:
> On 04/04/14 15:14, Johannes Pfau wrote:
>> Am Fri, 04 Apr 2014 11:52:13 +0200
>> schrieb Artur Skawina <art.08.09 at gmail.com>:
>>
>>> Built latest gcc4-8-based gdc (fdf0c614) today; immediately ran into
>>> this:
>>>
>>> Which is much more reasonable, and shouldn't require such hacks.
>>> I thought that inlining /templated/ functions across modules already
>>> worked; is this a different problem, and, more importantly, is it
>>> fixable?

>> @property bool empty(T)(in T[] a) @safe pure nothrow
>>
>> it's the 'in' which causes inlining to fail (const also fails).
> 
> Hmm, I remember const-args were a problem in the past, but I had
> thought this was already fixed. A quick search reveals:
[...]

Yep, I was remembering correctly:

http://forum.dlang.org/post/mailman.33.1325763631.16222.d.gnu@puremagic.com

[no idea how I managed to forget that report - this bug has exactly the
 same symptoms]

And Iain actually did fix it back then:

http://forum.dlang.org/post/mailman.221.1326102842.16222.d.gnu@puremagic.com
http://forum.dlang.org/post/mailman.233.1326132966.16222.d.gnu@puremagic.com

But somehow the bug is now back...

artur


More information about the D.gnu mailing list