D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7387 - call instruction does not understand $
Summary: call instruction does not understand $
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 All
: P2 normal
Assignee: No Owner
URL:
Keywords: iasm, pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2012-01-28 05:19 UTC by Vladimir Panteleev
Modified: 2020-08-27 16:29 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 Vladimir Panteleev 2012-01-28 05:19:03 UTC
Spec says:

> The $ can only appear as the target of a jmp or call instruction.

But this doesn't compile:

void main()
{
	asm
	{
		call $;
		pop EAX;
	}
}

t38b.d(5): bad type/size of operands 'call'
Comment 1 basile-z 2019-06-20 19:45:47 UTC
What is dollar supposed to represent here ? the function we're in ?
Comment 3 basile-z 2019-06-20 19:55:00 UTC
I see, it's the Address of next instr
Comment 4 Dlang Bot 2020-08-25 10:27:03 UTC
@WalterBright created dlang/dmd pull request #11624 "fix Issue 7387 - call instruction does not understand $" fixing this issue:

- fix Issue 7387 - call instruction does not understand $

https://github.com/dlang/dmd/pull/11624
Comment 5 Dlang Bot 2020-08-27 16:29:50 UTC
dlang/dmd pull request #11624 "fix Issue 7387 - call instruction does not understand $" was merged into master:

- 1b78cbc1c6726261287e907d702d595f93c708cb by Walter Bright:
  fix Issue 7387 - call instruction does not understand $

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