[Issue 6705] Bad codegen when passing fields as template alias params
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 9 08:39:51 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=6705
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
The generated code is:
__Dmain comdat
enter 4,0
mov EAX,offset __D4test__T4funcS_DQq1C1aiZQqMFNaNbNiNfiZi
mov -4[EBP],EAX
mov EAX,5 <=== EAX should be pushed on the
stack
call dword ptr -4[EBP]
mov ECX,5
cmp EAX,ECX
je L2A
push 0Eh
mov EDX,offset FLAT:___a6_746573742e64
push EDX
call near ptr __d_assertp
L2A: xor EAX,EAX
leave
ret
__D4test__T4funcS_DQq1C1aiZQqMFNaNbNiNfiZi comdat
mov EAX,4[ESP]
ret 4
Not sure why it isn't pushed on the stack.
--
More information about the Digitalmars-d-bugs
mailing list