D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6184 - missing REX.W on certain array compares
Summary: missing REX.W on certain array compares
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 All
: P2 normal
Assignee: Martin Nowak
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2011-06-20 11:08 UTC by Martin Nowak
Modified: 2011-11-17 18:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2011-06-20 11:08:55 UTC
Certain array compares are only done on the lower 32bit of array pointers.
Especially the following function triggers this bug.
bool cmp(ref int[3] a, ref int[3] b) { return a is b; }

P.S.: There is already a pull request, but I  created this bug report to hold as a reference.