[dmd-internals] [D-Programming-Language/dmd] 1a4f80: fix Issue 10573 - Weird linking problem with assoc...

GitHub noreply at github.com
Fri Sep 6 22:56:37 PDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 1a4f809768ac94936299929dff205c8bebb008e5
      https://github.com/D-Programming-Language/dmd/commit/1a4f809768ac94936299929dff205c8bebb008e5
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-09-04 (Wed, 04 Sep 2013)

  Changed paths:
    M src/expression.c
    A test/runnable/imports/test10573a.d
    A test/runnable/test10573.d

  Log Message:
  -----------
  fix Issue 10573 - Weird linking problem with associative array cast

CastExp would call `TypeAArray::getImpl()` in glue layer.

However if the AA type is just only used in the cast expression, the timing is too late to invoke `getImpl`, because the AA type instantiation may need more semantic analysis like deferred semantic3.

For the correct instantiation of the `AssociativeArray!(K, V)` type, `getImpl` should be invoked in front-end layer beforehand.


  Commit: b8392c2187e565b1d5c6e1c2ffca4ac527d8c015
      https://github.com/D-Programming-Language/dmd/commit/b8392c2187e565b1d5c6e1c2ffca4ac527d8c015
  Author: Walter Bright <walter at walterbright.com>
  Date:   2013-09-06 (Fri, 06 Sep 2013)

  Changed paths:
    M src/expression.c
    A test/runnable/imports/test10573a.d
    A test/runnable/test10573.d

  Log Message:
  -----------
  Merge pull request #2524 from 9rnsr/fix10573

[REG2.063] Issue 10573 - Weird linking problem with associative array cast


Compare: https://github.com/D-Programming-Language/dmd/compare/25edff56d1c0...b8392c2187e5


More information about the dmd-internals mailing list