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


Andrej Mitrovic <andrej.mitrov...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrov...@gmail.com
            Summary|compiler should inform as   |ICE: ../ztc/cgcs.c 343
                   |"... can't return lvalue "  |
                   |but crush because of        |
                   |Internal error              |
           Severity|normal                      |major


--- Comment #1 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-10-21 
13:35:15 PDT ---
Interesting, only seems to happen when array is length 2 or less:

OK:

int[3] mysize;
@property auto size() { return mysize; }
int width() { return size[0]; }
void main() { }

FAIL:

int[2] mysize;
@property auto size() { return mysize; }
int width() { return size[0]; }
void main() { }

I've changed the title to make it more searchable for others. High priority
since ICEs are important.

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

Reply via email to