Thread overview
[Issue 5922] immutable and static variables usage in asm{}
Jul 03, 2017
Vladimir Panteleev
Aug 22, 2020
Walter Bright
Aug 22, 2020
Walter Bright
[Issue 5922] inline assembler - referencing immutable variable values fails
Aug 22, 2020
Walter Bright
Aug 22, 2020
Dlang Bot
Aug 22, 2020
Dlang Bot
July 03, 2017
https://issues.dlang.org/show_bug.cgi?id=5922

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86                         |All
                 OS|Windows                     |All

--
August 22, 2020
https://issues.dlang.org/show_bug.cgi?id=5922

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=21186

--
August 22, 2020
https://issues.dlang.org/show_bug.cgi?id=5922

--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> ---
In reply to bearophile_hugs from comment #0)
> --------------------------
> 
> D2 code, static (thread-local) variables can't be used in ASM:
> 
> [...]

Moved to https://issues.dlang.org/show_bug.cgi?id=21186 as it is a different bug.

--
August 22, 2020
https://issues.dlang.org/show_bug.cgi?id=5922

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|immutable and static        |inline assembler -
                   |variables usage in asm{}    |referencing immutable
                   |                            |variable values fails

--
August 22, 2020
https://issues.dlang.org/show_bug.cgi?id=5922

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #11605 "fix Issue 5922 - inline assembler - referencing immutable variable va…" fixing this issue:

- fix Issue 5922 - inline assembler - referencing immutable variable values fails

https://github.com/dlang/dmd/pull/11605

--
August 22, 2020
https://issues.dlang.org/show_bug.cgi?id=5922

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11605 "fix Issue 5922 - inline assembler - referencing immutable variable va…" was merged into master:

- 45303db7ab4f9ed2beb1a5f3d33cb8a89f47f388 by Walter Bright:
  fix Issue 5922 - inline assembler - referencing immutable variable values
fails

https://github.com/dlang/dmd/pull/11605

--