July 08, 2011 [dmd-internals] [D-Programming-Language/dmd] 1631f4: CTFE: don't modify string literals passed by ref | ||||
---|---|---|---|---|
| ||||
Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 1631f4750cec3459bd12a8e1533ca591e9a7fcc5 https://github.com/D-Programming-Language/dmd/commit/1631f4750cec3459bd12a8e1533ca591e9a7fcc5 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-07-08 (Fri, 08 Jul 2011) Changed paths: M src/interpret.c Log Message: ----------- CTFE: don't modify string literals passed by ref Fixes bug found by Stephan Dilly. We need to resolve slices before duping, otherwise copyLiteral doesn't work. Commit: 1ab4136f654aa48babd0e0cc880408110d796385 https://github.com/D-Programming-Language/dmd/commit/1ab4136f654aa48babd0e0cc880408110d796385 Author: Don Clugston <dclugston at googlemail.com> Date: 2011-07-08 (Fri, 08 Jul 2011) Changed paths: M test/compilable/interpret3.d Log Message: ----------- Test case for modifying string literals by ref Commit: 27b73cb17f8943c5381a15fe597ce8e5e25419bd https://github.com/D-Programming-Language/dmd/commit/27b73cb17f8943c5381a15fe597ce8e5e25419bd Author: Walter Bright <walter at walterbright.com> Date: 2011-07-08 (Fri, 08 Jul 2011) Changed paths: M src/interpret.c M test/compilable/interpret3.d Log Message: ----------- Merge pull request #216 from donc/ctfebreak Fix CTFE mutation of string literals Compare: https://github.com/D-Programming-Language/dmd/compare/47efdef...27b73cb |
Copyright © 1999-2021 by the D Language Foundation