[dmd-internals] [D-Programming-Language/dmd] 5aaf81: Gather test cases for the invalid cast handlings i...

GitHub via dmd-internals dmd-internals at puremagic.com
Wed Jan 14 13:17:07 PST 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 5aaf81fd396c63ee2cc69176075b16fc4dd5812d
      https://github.com/D-Programming-Language/dmd/commit/5aaf81fd396c63ee2cc69176075b16fc4dd5812d
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-01-14 (Wed, 14 Jan 2015)

  Changed paths:
    R test/fail_compilation/fail11484.d
    R test/fail_compilation/fail11485.d
    R test/fail_compilation/fail7472.d
    R test/fail_compilation/fail9904.d
    A test/fail_compilation/fail_casting.d
    M test/runnable/casting.d
    M test/runnable/xtest46.d

  Log Message:
  -----------
  Gather test cases for the invalid cast handlings in front-end


  Commit: c1462de21724268c69cea7c09e5b6ab3b5be3007
      https://github.com/D-Programming-Language/dmd/commit/c1462de21724268c69cea7c09e5b6ab3b5be3007
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-01-14 (Wed, 14 Jan 2015)

  Changed paths:
    M src/expression.c

  Log Message:
  -----------
  Small cleanup in CastExp::semantic


  Commit: 2cd314db57f8a2e34cc829ac28e0f4872a7608f1
      https://github.com/D-Programming-Language/dmd/commit/2cd314db57f8a2e34cc829ac28e0f4872a7608f1
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-01-14 (Wed, 14 Jan 2015)

  Changed paths:
    M src/expression.c
    M test/fail_compilation/fail_casting.d

  Log Message:
  -----------
  Check the cast from class type to dynamic or static array type

It's a reverse direction of issue 10646 case.


  Commit: 7a1a5d53c887401a2c3b44da1dff87c2f90f04c0
      https://github.com/D-Programming-Language/dmd/commit/7a1a5d53c887401a2c3b44da1dff87c2f90f04c0
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-01-14 (Wed, 14 Jan 2015)

  Changed paths:
    M src/cast.c
    M src/expression.c
    R test/fail_compilation/fail8179.d
    M test/fail_compilation/fail_casting.d

  Log Message:
  -----------
  Disallow casting typeof(null) <--> Tsarray

And this is the generalized fix for the issue 8179 case. In
NullExp::castTo(), we can just rely on the TypeNull:implicitConvTo() behavior.


  Commit: a5f03074bbcc9f315820ff68e2e4d84dddcdfd5a
      https://github.com/D-Programming-Language/dmd/commit/a5f03074bbcc9f315820ff68e2e4d84dddcdfd5a
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-01-14 (Wed, 14 Jan 2015)

  Changed paths:
    M src/expression.c
    M test/fail_compilation/fail_casting.d

  Log Message:
  -----------
  fix Issue 13959 - ICE in e2ir when casting struct to pointer


  Commit: 4637504db7f8831fc8c15a49256266d022b99639
      https://github.com/D-Programming-Language/dmd/commit/4637504db7f8831fc8c15a49256266d022b99639
  Author: Walter Bright <walter at walterbright.com>
  Date:   2015-01-14 (Wed, 14 Jan 2015)

  Changed paths:
    M src/cast.c
    M src/expression.c
    R test/fail_compilation/fail11484.d
    R test/fail_compilation/fail11485.d
    R test/fail_compilation/fail7472.d
    R test/fail_compilation/fail8179.d
    R test/fail_compilation/fail9904.d
    A test/fail_compilation/fail_casting.d
    M test/runnable/casting.d
    M test/runnable/xtest46.d

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

Start working to handle all invalid casts by front-end layer


Compare: https://github.com/D-Programming-Language/dmd/compare/68260d6cbaff...4637504db7f8


More information about the dmd-internals mailing list