http://d.puremagic.com/issues/show_bug.cgi?id=4963
Summary: ICE(type.c:320) for struct append where T.sizeof < 3 Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: kevinbea...@gmail.com --- Comment #0 from Kevin Bealer <kevinbea...@gmail.com> 2010-09-30 22:28:48 PDT --- ----- symptom ---- dmd -ofsolver solver.d Internal error: ../ztc/type.c 320 ----- conditions ----- ICE occurs in type.c line 320 during array append operation of structs. Error only occurs when all these conditions are met: 1. One object must be a list, the other a single object. 2. Value.sizeof must be < 3. 3. The single value is returned from a function or method. ----- solver.d ----- struct Value { //int a; // does not produce error byte a; // produces error (also, short would produce an error) }; Value single() { Value v; return v; } int main(string[] args) { Value[] list; Value single2; Value[] buffer = single() ~ list; // error Value[] buffer2 = single2 ~ list; // not an error return 0; } ----- Kevin -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------