[Issue 13381] One case of array literal that can be stack-allocated

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 31 04:02:05 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13381

--- Comment #7 from yebblies <yebblies at gmail.com> ---
(In reply to bearophile_hugs from comment #6)
> (In reply to yebblies from comment #5)
> 
> > Ideally the optimizer would do this by itself, once the literal is
> > stack-allocated.  I suspect it already does in some cases for gdc/ldc.
> 
> If I compile this program:
> 

Like I said, once the literal is stack-allocated it's more likely to work.

--


More information about the Digitalmars-d-bugs mailing list