Bug 6184 – missing REX.W on certain array compares

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2011-06-20T11:08:00Z
Last change time
2011-11-17T18:49:45Z
Keywords
wrong-code
Assigned to
code
Creator
code

Comments

Comment #0 by code — 2011-06-20T11:08:55Z
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.
Comment #1 by code — 2011-11-17T18:49:45Z