[dmd-internals] [D-Programming-Language/dmd] fb0aca: fix Issue 9406 - (Regression: 2.061) Stack overflo...

GitHub noreply at github.com
Tue Jan 29 12:15:35 PST 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: fb0aca7d5c7d103ea545574101355282edeba90b
      https://github.com/D-Programming-Language/dmd/commit/fb0aca7d5c7d103ea545574101355282edeba90b
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-01-28 (Mon, 28 Jan 2013)

  Changed paths:
    M src/template.c
    A test/fail_compilation/ice9406.d

  Log Message:
  -----------
  fix Issue 9406 - (Regression: 2.061) Stack overflow from a forward reference error


  Commit: 2f20199e13b77d2a2d2b1766235841c1626ac191
      https://github.com/D-Programming-Language/dmd/commit/2f20199e13b77d2a2d2b1766235841c1626ac191
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-01-28 (Mon, 28 Jan 2013)

  Changed paths:
    M src/template.c
    M test/fail_compilation/ice9406.d

  Log Message:
  -----------
  Fix unnecessary forward reference error.

In DotTemplateInstanceExp, needsTypeInference is used to determine whether the instance is really a function call or not. But the template is yet not actually instantiated, so onemember->toAlias() might fail. In this case, TemplateInstance::toAlias() tried to run its semantic.


  Commit: 6bb0a54cb8656c6debaac733118036ec3f48bbc6
      https://github.com/D-Programming-Language/dmd/commit/6bb0a54cb8656c6debaac733118036ec3f48bbc6
  Author: Walter Bright <walter at walterbright.com>
  Date:   2013-01-29 (Tue, 29 Jan 2013)

  Changed paths:
    M src/template.c
    A test/fail_compilation/ice9406.d

  Log Message:
  -----------
  Merge pull request #1576 from 9rnsr/fix9406

Issue 9406 - (Regression: 2.061) Stack overflow from a forward reference error


Compare: https://github.com/D-Programming-Language/dmd/compare/274dacfe3a4f...6bb0a54cb865


More information about the dmd-internals mailing list