[Bug 148] gcc inline asm instruction template must be a constant char string regression

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Sat Sep 1 15:39:56 UTC 2018


https://bugzilla.gdcproject.org/show_bug.cgi?id=148

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject.org> ---
As of: https://github.com/dlang/dmd/pull/8538

The parsing of the asm block has been moved to the semantic pass.

This now all works:

void main()
{
    asm { "" ~ ""; }
    enum E = ""~"";
    asm { E; }
    asm { ""~E~""; }
    asm { mixin(""~""); }
}

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


More information about the D.gnu mailing list