[Issue 2601] Extraneous cast introduced in member access

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 15 04:37:32 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=2601


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |rejects-valid
            Version|2.000                       |1.050


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-01-15 04:37:28 PST ---
The segfault was fixed long ago.
Reduced test case also fails on D1. I'm not certain it's a bug, though.
--------
void next(ref int[] a) { a[0] = 0; }

void bug2601() {
   int[3] b;   
   next(b);
}

bug.d(5): Error: cast(int[])b is not an lvalue

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list