[dmd-internals] [D-Programming-Language/dmd] 877736: Add `bool gag` flag to resolveAliasThis()

GitHub via dmd-internals dmd-internals at puremagic.com
Sat Aug 29 00:40:25 PDT 2015


  Branch: refs/heads/stable
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 877736034f2406f6959644d642999ea0894c4245
      https://github.com/D-Programming-Language/dmd/commit/877736034f2406f6959644d642999ea0894c4245
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-08-25 (Tue, 25 Aug 2015)

  Changed paths:
    M src/aliasthis.c
    M src/expression.h

  Log Message:
  -----------
  Add `bool gag` flag to resolveAliasThis()


  Commit: 33ccda3dcd52fb7706eec2d24d9224ce36f8d2bd
      https://github.com/D-Programming-Language/dmd/commit/33ccda3dcd52fb7706eec2d24d9224ce36f8d2bd
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-08-25 (Tue, 25 Aug 2015)

  Changed paths:
    M src/arrayop.c
    M src/expression.c
    M src/expression.h
    M src/mtype.c

  Log Message:
  -----------
  Add convenient constructors in ArrayExp and SliceExp


  Commit: 07d6a3673d1bd7a60c823f49966f6a11fb4e7791
      https://github.com/D-Programming-Language/dmd/commit/07d6a3673d1bd7a60c823f49966f6a11fb4e7791
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-08-25 (Tue, 25 Aug 2015)

  Changed paths:
    M src/expression.c
    M src/magicport.json
    M src/mtype.c
    M src/opover.c
    R test/fail_compilation/fail1.d
    R test/fail_compilation/fail2.d
    A test/fail_compilation/fail_opover.d
    M test/runnable/opover2.d

  Log Message:
  -----------
  Stop nested semantic() call with gagging for array operator overloading fallback

Points:
- Shorten the length of problematic gagged semantic path.
- Improve ArrayExp as the entry point of array operator overloading.
- Reduce stack size and the number of heap-allocated AST nodes for recursive semantic analysis.

Also fixes unlisted wrong-code issue. See test20x() in runnable/opover2.d


  Commit: 3b89f3e23de4ff7580932298bd3ce356dccec7ab
      https://github.com/D-Programming-Language/dmd/commit/3b89f3e23de4ff7580932298bd3ce356dccec7ab
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-08-25 (Tue, 25 Aug 2015)

  Changed paths:
    M src/expression.c
    M src/expression.h
    M src/magicport.json
    M src/opover.c

  Log Message:
  -----------
  Remove unnecessary SliceExp creation


  Commit: 6fcef51018ab366fb8fd7ec011597e08bb65f9ec
      https://github.com/D-Programming-Language/dmd/commit/6fcef51018ab366fb8fd7ec011597e08bb65f9ec
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-08-25 (Tue, 25 Aug 2015)

  Changed paths:
    A test/fail_compilation/ice14621.d

  Log Message:
  -----------
  fix Issue 14621 - ICE: Assertion failure: 'global.gaggedErrors || global.errors' on line 752 in file 'statement.c'


  Commit: bfb7f8d2a116578a57be29d87da3db010b565bb1
      https://github.com/D-Programming-Language/dmd/commit/bfb7f8d2a116578a57be29d87da3db010b565bb1
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-08-25 (Tue, 25 Aug 2015)

  Changed paths:
    M test/runnable/opover2.d

  Log Message:
  -----------
  fix Issue 14624 - The array operator overloading fallback is not correct


  Commit: 248805a4ba23278622f6831a172779f3012b1b03
      https://github.com/D-Programming-Language/dmd/commit/248805a4ba23278622f6831a172779f3012b1b03
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-08-25 (Tue, 25 Aug 2015)

  Changed paths:
    M src/opover.c
    M test/runnable/opover2.d

  Log Message:
  -----------
  fix Issue 14625 - opIndex() doesn't work on foreach container iteration


  Commit: d99699301eb0f5d46b4f9240236ca7c1694bb39b
      https://github.com/D-Programming-Language/dmd/commit/d99699301eb0f5d46b4f9240236ca7c1694bb39b
  Author: Martin Nowak <code at dawg.eu>
  Date:   2015-08-29 (Sat, 29 Aug 2015)

  Changed paths:
    M src/aliasthis.c
    M src/arrayop.c
    M src/expression.c
    M src/expression.h
    M src/magicport.json
    M src/mtype.c
    M src/opover.c
    R test/fail_compilation/fail1.d
    R test/fail_compilation/fail2.d
    A test/fail_compilation/fail_opover.d
    A test/fail_compilation/ice14621.d
    M test/runnable/opover2.d

  Log Message:
  -----------
  Merge pull request #4948 from 9rnsr/fix14621

Issue 14621, 14624, 14625 - Fix bugs in array operator overloading semantics


Compare: https://github.com/D-Programming-Language/dmd/compare/955eb73f73a3...d99699301eb0


More information about the dmd-internals mailing list