[dmd-internals] [D-Programming-Language/dmd] 0b77f0: fix Issue 13775 - Broken explicit casting of dynam...

GitHub via dmd-internals dmd-internals at puremagic.com
Fri Dec 5 18:41:25 PST 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 0b77f0d79c2c7f5949804483221c3f47d2bbf101
      https://github.com/D-Programming-Language/dmd/commit/0b77f0d79c2c7f5949804483221c3f47d2bbf101
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2014-12-05 (Fri, 05 Dec 2014)

  Changed paths:
    M src/cast.c
    A test/fail_compilation/fail13775.d
    M test/runnable/testbounds2.d

  Log Message:
  -----------
  fix Issue 13775 - Broken explicit casting of dynamic array slices of known size to static array of different type

Support reinterpret-cast from a CT-known boundaries slice expression that can be implicitly typed as `T[n]` to another static array type `U[m]`, iff their sizes are same (`T[n].sizeof == U[m].sizeof`).


  Commit: 0a92f21363f8fd24ef3bd293673219597d17338b
      https://github.com/D-Programming-Language/dmd/commit/0a92f21363f8fd24ef3bd293673219597d17338b
  Author: Daniel Murphy <yebblies at gmail.com>
  Date:   2014-12-06 (Sat, 06 Dec 2014)

  Changed paths:
    M src/cast.c
    A test/fail_compilation/fail13775.d
    M test/runnable/testbounds2.d

  Log Message:
  -----------
  Merge pull request #4193 from 9rnsr/fix13775

[REG2.067a] Issue 13775 - Broken explicit casting of dynamic array slices of known size to static array of different type


Compare: https://github.com/D-Programming-Language/dmd/compare/fd0e69b4f1e3...0a92f21363f8


More information about the dmd-internals mailing list