[Issue 8861] ICE: ../ztc/cgcs.c 343

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 21 13:35:17 PDT 2012


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at 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.mitrovich at 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: -------


More information about the Digitalmars-d-bugs mailing list