View mode: basic / threaded / horizontal-split · Log in · Help
December 18, 2012
[Issue 9180] New: can't compile example code on dlang.org
http://d.puremagic.com/issues/show_bug.cgi?id=9180

          Summary: can't compile example code on dlang.org
          Product: D
          Version: D2
         Platform: All
       OS/Version: All
           Status: NEW
         Severity: normal
         Priority: P2
        Component: DMD
       AssignedTo: nobody@puremagic.com
       ReportedBy: govellius@gmail.com


--- Comment #0 from Shahid <govellius@gmail.com> 2012-12-18 13:46:00 PST ---
http://dlang.org/iasm.html

__Struct/Union/Class Member Offsets__

---
struct Foo { int a,b,c; }
int bar(Foo *f) {
 asm {
   mov EBX,f          ;
   mov EAX,Foo.b[EBX] ;
 }
}
---
test.d(5): Error: variable b cannot be read at compile time

Is DMD broken here or should we change the doc/spec to "Foo.b.offsetof" ?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 27, 2012
[Issue 9180] can't compile example code on dlang.org
http://d.puremagic.com/issues/show_bug.cgi?id=9180


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
          Keywords|                            |pull
                CC|                            |andrej.mitrovich@gmail.com
         Component|DMD                         |websites


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-12-27 09:15:14 PST ---
https://github.com/D-Programming-Language/d-programming-language.org/pull/221

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 27, 2012
[Issue 9180] can't compile example code on dlang.org
http://d.puremagic.com/issues/show_bug.cgi?id=9180



--- Comment #2 from github-bugzilla@puremagic.com 2012-12-27 12:17:07 PST ---
Commits pushed to master at
https://github.com/D-Programming-Language/d-programming-language.org

https://github.com/D-Programming-Language/d-programming-language.org/commit/6d9762a90d5071dac693f83027efb45f4f20e631
Fixes Issue 9180 - Fix outdated ASM example.

https://github.com/D-Programming-Language/d-programming-language.org/commit/1fcf488f90f22d7f545ba0f4727101f85665ab70
Merge pull request #221 from AndrejMitrovic/Fix9180

Issue 9180 - Fix outdated ASM example.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 27, 2012
[Issue 9180] can't compile example code on dlang.org
http://d.puremagic.com/issues/show_bug.cgi?id=9180


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

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


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 31, 2012
[Issue 9180] can't compile example code on dlang.org
http://d.puremagic.com/issues/show_bug.cgi?id=9180



--- Comment #3 from github-bugzilla@puremagic.com 2012-12-31 03:50:32 PST ---
Commit pushed to master at
https://github.com/D-Programming-Language/d-programming-language.org

https://github.com/D-Programming-Language/d-programming-language.org/commit/0235fa74a2a91319d15ecc9bb1b9960b22f85a63
followup to Issue 9180

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 02, 2013
[Issue 9180] can't compile example code on dlang.org
http://d.puremagic.com/issues/show_bug.cgi?id=9180



--- Comment #4 from github-bugzilla@puremagic.com 2013-01-02 01:42:21 PST ---
Commits pushed to staging at
https://github.com/D-Programming-Language/d-programming-language.org

https://github.com/D-Programming-Language/d-programming-language.org/commit/6d9762a90d5071dac693f83027efb45f4f20e631
Fixes Issue 9180 - Fix outdated ASM example.

https://github.com/D-Programming-Language/d-programming-language.org/commit/1fcf488f90f22d7f545ba0f4727101f85665ab70
Merge pull request #221 from AndrejMitrovic/Fix9180

https://github.com/D-Programming-Language/d-programming-language.org/commit/0235fa74a2a91319d15ecc9bb1b9960b22f85a63
followup to Issue 9180

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home