[dmd-internals] [D-Programming-Language/dmd] 1631f4: CTFE: don't modify string literals passed by ref

noreply at github.com noreply at github.com
Fri Jul 8 14:37:22 PDT 2011


  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


More information about the dmd-internals mailing list