[dmd-internals] [D-Programming-Language/dmd] 1df41d: Resolve forward reference in `VarDeclaration.toAli...

GitHub via dmd-internals dmd-internals at puremagic.com
Sat Oct 3 23:38:58 PDT 2015


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

  Changed paths:
    M src/declaration.d
    M src/dsymbol.d
    M src/expression.d
    A test/compilable/ice11300.d
    A test/compilable/imports/ice11300a.d
    R test/fail_compilation/ice11300.d
    R test/fail_compilation/imports/ice11300a.d

  Log Message:
  -----------
  Resolve forward reference in `VarDeclaration.toAlias()`

After this change:
1. The check `!v.type` in `DsymbolExp.resolve` and `ScopeExp.semantic` will mean *unresolvable* forward reference.
2. The code for issue 12023 in `DsymbolExp.resolve` becomes cleaner.
3. Through the calls `AliasDeclaration.toAlias` and `VarDeclaration.toAlias`, selected import symbols will be resolved and `ice11300.d` case is made compilable.


  Commit: ae922d80de0a63ddf562e97ab89f97deddf8453c
      https://github.com/D-Programming-Language/dmd/commit/ae922d80de0a63ddf562e97ab89f97deddf8453c
  Author: Walter Bright <walter at walterbright.com>
  Date:   2015-10-03 (Sat, 03 Oct 2015)

  Changed paths:
    M src/declaration.d
    M src/dsymbol.d
    M src/expression.d
    A test/compilable/ice11300.d
    A test/compilable/imports/ice11300a.d
    R test/fail_compilation/ice11300.d
    R test/fail_compilation/imports/ice11300a.d

  Log Message:
  -----------
  Merge pull request #5149 from 9rnsr/fix_vardecl_toalias

Resolve forward reference in `VarDeclaration.toAlias()`


Compare: https://github.com/D-Programming-Language/dmd/compare/e779ffc38336...ae922d80de0a


More information about the dmd-internals mailing list