April 11, 2011 [dmd-internals] [D-Programming-Language/dmd] 661ebe: CTFE: array assign from array var containing slice | ||||
---|---|---|---|---|
| ||||
Branch: refs/heads/dmd-1.x Home: https://github.com/D-Programming-Language/dmd Commit: 661ebeaf1523268097dd7d3182bd3624ec31c003 https://github.com/D-Programming-Language/dmd/commit/661ebeaf1523268097dd7d3182bd3624ec31c003 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-04-11 (Mon, 11 Apr 2011) Changed paths: M src/interpret.c Log Message: ----------- CTFE: array assign from array var containing slice Fixes an ICE found by David Nadlinger, which happened in cases involving three arrays, such as this one: int a[5]; int [] b=a[0..3]; int c[]=b; The existing assert didn't cover the case where the source variable included a TOKslice. Commit: f0dcdee161f964835f2658b0b790b62b9e57f82b https://github.com/D-Programming-Language/dmd/commit/f0dcdee161f964835f2658b0b790b62b9e57f82b Author: Don Clugston <dclugston at googlemail.com> Date: 2011-04-11 (Mon, 11 Apr 2011) Changed paths: M src/interpret.c Log Message: ----------- ICE(interpret.c) recursive reference array assign Don't delete local variables twice. The null assignment is unnecessary, since if they were modified from null, they get restored back to null anyway. And if they were references, they're clobbering the return value. Commit: a09e9ada0f175c9c19c9820985007b0161e18267 https://github.com/D-Programming-Language/dmd/commit/a09e9ada0f175c9c19c9820985007b0161e18267 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-04-11 (Mon, 11 Apr 2011) Changed paths: M src/interpret.c Log Message: ----------- CTFE: Improve error message for 'new Class' Also add error messages for failure to resolve variable names. Commit: 70b116e26a9e82bf0985839c6b88bddca9166308 https://github.com/D-Programming-Language/dmd/commit/70b116e26a9e82bf0985839c6b88bddca9166308 Author: Walter Bright <walter at walterbright.com> Date: 2011-04-11 (Mon, 11 Apr 2011) Changed paths: M src/interpret.c Log Message: ----------- Merge branch 'ctfe1' of https://github.com/donc/dmd into pull25 Compare: https://github.com/D-Programming-Language/dmd/compare/1fc2fdb...70b116e |
Copyright © 1999-2021 by the D Language Foundation