June 16, 2011 [dmd-internals] [D-Programming-Language/dmd] d61c77: CTFE: Fix pointers in return statements | ||||
---|---|---|---|---|
| ||||
Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: d61c778c29c924b830c5472dcb9d3afb82937b01 https://github.com/D-Programming-Language/dmd/commit/d61c778c29c924b830c5472dcb9d3afb82937b01 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-15 (Wed, 15 Jun 2011) Changed paths: M src/interpret.c Log Message: ----------- CTFE: Fix pointers in return statements Commit: c688ffb025e1ff9613d1ecd8ddaa1036be3060f4 https://github.com/D-Programming-Language/dmd/commit/c688ffb025e1ff9613d1ecd8ddaa1036be3060f4 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-15 (Wed, 15 Jun 2011) Changed paths: M src/interpret.c Log Message: ----------- CTFE: missing type in f()=arr Could cause ICE or wrong code. Commit: 925eb881d5eb24b449e05a955b889ff60f24a25d https://github.com/D-Programming-Language/dmd/commit/925eb881d5eb24b449e05a955b889ff60f24a25d Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-15 (Wed, 15 Jun 2011) Changed paths: M src/interpret.c Log Message: ----------- CTFE: Pointers to heap-allocated structs This is mainly a fix to DotVar expressions. Casts from arrays to pointers are also fixed. assert(struct.var.var2) is also fixed. Commit: 72d6ef5ddad1c2ba0de6d61143adef9fd9a7c9c1 https://github.com/D-Programming-Language/dmd/commit/72d6ef5ddad1c2ba0de6d61143adef9fd9a7c9c1 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-15 (Wed, 15 Jun 2011) Changed paths: M test/compilable/interpret3.d Log Message: ----------- Test cases for CTFE struct pointers Commit: 878499a6d911c9e7e77ae97db36f73d1fd7e2aff https://github.com/D-Programming-Language/dmd/commit/878499a6d911c9e7e77ae97db36f73d1fd7e2aff Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-15 (Wed, 15 Jun 2011) Changed paths: M src/constfold.c Log Message: ----------- 6159 [CTFE] ICE(constfold.c) on 'is' with structs 'is' shouldn't require both operands to be constant, in the case where it is used from CTFE. Commit: 522e43dc81ef0b7885513548089f542a2bd7f938 https://github.com/D-Programming-Language/dmd/commit/522e43dc81ef0b7885513548089f542a2bd7f938 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-15 (Wed, 15 Jun 2011) Changed paths: M test/compilable/interpret3.d Log Message: ----------- Test case for 6159 Commit: 5d6df984d50862f25b481790ad4ef86b0afd6c9a https://github.com/D-Programming-Language/dmd/commit/5d6df984d50862f25b481790ad4ef86b0afd6c9a Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-15 (Wed, 15 Jun 2011) Changed paths: M src/interpret.c Log Message: ----------- [CTFE] prevent wrong code with array casts (5497) Note that it doesn't fix the test case in 5497, it disallows it to prevent wrong code. Commit: b50fa9ec3e0c2a3aaa921bb357128b19effd57eb https://github.com/D-Programming-Language/dmd/commit/b50fa9ec3e0c2a3aaa921bb357128b19effd57eb Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-15 (Wed, 15 Jun 2011) Changed paths: M src/interpret.c Log Message: ----------- CTFE: Support 'new Struct' The only complexity is that for constructor calls, 'this' must be evaluated before interpreting the function (because 'this' is just a struct literal in this case). Commit: 38f18ba79dcb5e0db13dd207aaded38e31f36461 https://github.com/D-Programming-Language/dmd/commit/38f18ba79dcb5e0db13dd207aaded38e31f36461 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-16 (Thu, 16 Jun 2011) Changed paths: M src/interpret.c Log Message: ----------- Make interpret.c usable with D1 Commit: 0835250480c1458cc868b511da7cd0f757f33029 https://github.com/D-Programming-Language/dmd/commit/0835250480c1458cc868b511da7cd0f757f33029 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-16 (Thu, 16 Jun 2011) Changed paths: M src/interpret.c Log Message: ----------- 4063 [CTFE] key not found in AA gives bad error message Also fixed a major type-painting bug which was revealed by this fix. Commit: 19f4e10de21ecf7284227d54b3690d961d2e7e89 https://github.com/D-Programming-Language/dmd/commit/19f4e10de21ecf7284227d54b3690d961d2e7e89 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-16 (Thu, 16 Jun 2011) Changed paths: M src/expression.h M src/interpret.c Log Message: ----------- 4065 [CTFE] AA "in" operator doesn't work Also fixes an ICE with !pointer. Commit: f616a5f2fb6b2bc96fc058e602065d166639755e https://github.com/D-Programming-Language/dmd/commit/f616a5f2fb6b2bc96fc058e602065d166639755e Author: Don Clugston <dclugston at googlemail.com> Date: 2011-06-16 (Thu, 16 Jun 2011) Changed paths: M test/compilable/interpret3.d Log Message: ----------- Test cases for 4065 Commit: 67ca457d1a0ff89b54eccd455484eec4482717e0 https://github.com/D-Programming-Language/dmd/commit/67ca457d1a0ff89b54eccd455484eec4482717e0 Author: Walter Bright <walter at walterbright.com> Date: 2011-06-16 (Thu, 16 Jun 2011) Changed paths: M src/constfold.c M src/expression.h M src/interpret.c M test/compilable/interpret3.d Log Message: ----------- Merge pull request #133 from donc/ctfeptr CTFE: Support heap-allocated structs Compare: https://github.com/D-Programming-Language/dmd/compare/e94b273...67ca457 |
Copyright © 1999-2021 by the D Language Foundation