[dmd-internals] [D-Programming-Language/dmd] 77a795: Check all invalid casts in the front end, and rais...

GitHub via dmd-internals dmd-internals at puremagic.com
Sun May 31 10:56:42 PDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 77a7952230186a0a741744d433fd650cbb25e0af
      https://github.com/D-Programming-Language/dmd/commit/77a7952230186a0a741744d433fd650cbb25e0af
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-05-30 (Sat, 30 May 2015)

  Changed paths:
    M src/cast.c
    M src/constfold.c
    M src/e2ir.c
    M src/expression.c
    M test/fail_compilation/fail233.d
    M test/fail_compilation/fail304.d
    M test/fail_compilation/fail8179b.d
    M test/fail_compilation/fail_casting.d
    A test/fail_compilation/fail_casting1.d
    M test/runnable/testxmm.d

  Log Message:
  -----------
  Check all invalid casts in the front end, and raise semantic error for that

Mostly it's an emulation of CastExp::toElem(). The type categorization would work well.


  Commit: aefeb3fb7e1b4ba36ca7afc788a74109190e9711
      https://github.com/D-Programming-Language/dmd/commit/aefeb3fb7e1b4ba36ca7afc788a74109190e9711
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-05-30 (Sat, 30 May 2015)

  Changed paths:
    M test/fail_compilation/fail_casting.d

  Log Message:
  -----------
  fix Issue 14629 - Type system breaking and wrong code bugs in casting reference types to typeof(null)


  Commit: 185779938ac17bfe412f390b4971daeb07d057bd
      https://github.com/D-Programming-Language/dmd/commit/185779938ac17bfe412f390b4971daeb07d057bd
  Author: Walter Bright <walter at walterbright.com>
  Date:   2015-05-31 (Sun, 31 May 2015)

  Changed paths:
    M src/cast.c
    M src/constfold.c
    M src/e2ir.c
    M src/expression.c
    M test/fail_compilation/fail233.d
    M test/fail_compilation/fail304.d
    M test/fail_compilation/fail8179b.d
    M test/fail_compilation/fail_casting.d
    A test/fail_compilation/fail_casting1.d
    M test/runnable/testxmm.d

  Log Message:
  -----------
  Merge pull request #4691 from 9rnsr/fix_casting

Exhaustive fix for minor ICE "e2ir: cannot cast" (and fixes one reopened regression)


Compare: https://github.com/D-Programming-Language/dmd/compare/26ebfeb127f6...185779938ac1


More information about the dmd-internals mailing list