[dmd-internals] [D-Programming-Language/dmd] 57091a: fix Issue 13847 - CTFE internal error: dottype

GitHub via dmd-internals dmd-internals at puremagic.com
Sun Dec 14 14:29:29 PST 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 57091af50ba5d531a34770bb810df26eafe58812
      https://github.com/D-Programming-Language/dmd/commit/57091af50ba5d531a34770bb810df26eafe58812
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2014-12-11 (Thu, 11 Dec 2014)

  Changed paths:
    M src/interpret.c
    M test/compilable/interpret3.d

  Log Message:
  -----------
  fix Issue 13847 - CTFE internal error: dottype

Handle function values in each CTFE steps, then simplify
CallExp::interpret() and we need to interpret CallExp::e1 just only once.

After all, DotTypeExp will be one of the function values in CTFE, and
CallExp::interpret can distinguish 'virtual call' and 'direct call' properly.

Also simplify ThisExp::interpret because pthis is always interpreted to a
literal expression (TOKstructliteral or TOKclassreference).


  Commit: 6cf83166ee230cb7b88cb08ad99d12bdc2dcd911
      https://github.com/D-Programming-Language/dmd/commit/6cf83166ee230cb7b88cb08ad99d12bdc2dcd911
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2014-12-11 (Thu, 11 Dec 2014)

  Changed paths:
    A test/fail_compilation/diag13028.d

  Log Message:
  -----------
  fix Issue 13028 - [ICE] CTFE internal error: cannot evaluate at compile time


  Commit: 419a8139374cd2ae1de7c2698c7bb73ca80f3b01
      https://github.com/D-Programming-Language/dmd/commit/419a8139374cd2ae1de7c2698c7bb73ca80f3b01
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2014-12-11 (Thu, 11 Dec 2014)

  Changed paths:
    A test/fail_compilation/diag13528.d

  Log Message:
  -----------
  fix Issue 13528 - Internal Compiler Error: CTFE DotType


  Commit: 8597cda969db9221350f28903a85fe88fef26821
      https://github.com/D-Programming-Language/dmd/commit/8597cda969db9221350f28903a85fe88fef26821
  Author: Walter Bright <walter at walterbright.com>
  Date:   2014-12-14 (Sun, 14 Dec 2014)

  Changed paths:
    M src/interpret.c
    M test/compilable/interpret3.d
    A test/fail_compilation/diag13028.d
    A test/fail_compilation/diag13528.d

  Log Message:
  -----------
  Merge pull request #4208 from 9rnsr/fix13847

Issue 13847 - CTFE internal error: dottype


Compare: https://github.com/D-Programming-Language/dmd/compare/471704a079ba...8597cda969db


More information about the dmd-internals mailing list