http://bugzilla.gdcproject.org/show_bug.cgi?id=205

Daniel Murphy <yebbl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebbl...@gmail.com

--- Comment #3 from Daniel Murphy <yebbl...@gmail.com> ---
(In reply to thomas.bockman from comment #2)
> Nevermind - although it compiles, it turns out that my workaround doesn't
> actually control inlining on DMD.
> 
> So, I still need
>     pragma(inline, true):
> Or
>     pragma(inline, true {
>     }
> Added to the GDC grammar to be able to share one code base across all the
> major compilers.

What about moving the pragma inside the function?

void func()
{
    version (DigitalMars)
    {
        pragma(inline, true);
    }
}

void main()
{
    func();
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to