www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10068] New: mixin related bug: __HID22 is 0x00000001. causes exeption in nothrow code

http://d.puremagic.com/issues/show_bug.cgi?id=10068

           Summary: mixin related bug: __HID22 is 0x00000001. causes
                    exeption in nothrow code
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: puremagic zoadian.de


--- Comment #0 from Felix Hufnagel <puremagic zoadian.de> 2013-05-12 05:27:04
PDT ---
http://s7.directupload.net/images/130512/bqg2rjyd.png

http://dpaste.dzfl.pl/2edb17c1

I get an runtime exception then calling .orientation on an Camera instance.
.orientation is marked as const  safe nothrow though.

the problem probably comes from "mixin Transformations;"
when i replace them with those functions it works.

Code generated for orientation():
0044368B  mov         ecx,dword ptr [this]  
0044368E  lea         esi,[ecx+100h]  
00443694  mov         edi,dword ptr [__HID22]  
00443697  movs        dword ptr es:[edi],dword ptr [esi]  
00443698  movs        dword ptr es:[edi],dword ptr [esi]  
00443699  movs        dword ptr es:[edi],dword ptr [esi]  
0044369A  movs        dword ptr es:[edi],dword ptr [esi]  
0044369B  mov         eax,dword ptr [__HID22]

as you can see it is using __HID22 which is set to 0x00000001.


if more info is required, feel free to contact me.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 12 2013