D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10068 - mixin related bug: __HID22 is 0x00000001. causes exeption in nothrow code
Summary: mixin related bug: __HID22 is 0x00000001. causes exeption in nothrow code
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2013-05-12 05:27 UTC by Felix Hufnagel
Modified: 2020-07-04 16:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Felix Hufnagel 2013-05-12 05:27:04 UTC
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.
Comment 1 basile-z 2020-07-04 16:43:20 UTC
reopen with a test case as old dpaste is gone.