[Issue 7752] Static array .init is actually .init of the array element type, not the array.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 14 03:12:34 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7752
monarchdodra at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |monarchdodra at gmail.com
--- Comment #1 from monarchdodra at gmail.com 2012-09-14 03:12:46 PDT ---
Just executed this:
--------
void main() // 1
{ // 2
int[5] x; // 3
// 4
if (x == x.init) { } // 5 Code that should be legal
if (x.init == x[0].init) { } // 6 Code that is actually illegal
} // 7
--------
And it produces:
--------
main.d(6): Error: incompatible types for (([0,0,0,0,0]) == (0)): 'int[5u]' and
'int'
--------
So it looks like the issue is fixed. Anybody know which pull fixed this, or
should I just close?
--
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