[dmd-internals] [D-Programming-Language/dmd] 42d1af: Fix Issue 6169 - [CTFE] pure functions cannot comp...

GitHub noreply at github.com
Sat May 4 09:48:13 PDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 42d1af1635fec1c43bbda6c4a3894e148ca6fc22
      https://github.com/D-Programming-Language/dmd/commit/42d1af1635fec1c43bbda6c4a3894e148ca6fc22
  Author: Daniel Murphy <yebblies at gmail.com>
  Date:   2013-05-02 (Thu, 02 May 2013)

  Changed paths:
    M src/attrib.c
    M src/cond.c
    M src/declaration.c
    M src/enum.c
    M src/expression.c
    M src/expression.h
    M src/iasm.c
    M src/init.c
    M src/mtype.c
    M src/scope.c
    M src/scope.h
    M src/statement.c
    M src/staticassert.c
    M src/struct.c
    M src/template.c
    A test/fail_compilation/failsafea.d
    A test/fail_compilation/failsafeb.d
    A test/fail_compilation/failsafec.d
    M test/runnable/Fix5140.d
    M test/runnable/testsafe.d
    M test/runnable/xtest46.d

  Log Message:
  -----------
  Fix Issue 6169 - [CTFE] pure functions cannot compute constants using functions not marked as pure

When running semantic on an expression used anywhere that forces compile time evaluation, use a scope flag to prevent purity and safety checks on function calls.
This allows better purity/safety inferrence as well.


  Commit: 15a57832d0a9ed18eb619c58261db6c2eedc663e
      https://github.com/D-Programming-Language/dmd/commit/15a57832d0a9ed18eb619c58261db6c2eedc663e
  Author: Don Clugston <dclugston at googlemail.com>
  Date:   2013-05-04 (Sat, 04 May 2013)

  Changed paths:
    M src/attrib.c
    M src/cond.c
    M src/declaration.c
    M src/enum.c
    M src/expression.c
    M src/expression.h
    M src/iasm.c
    M src/init.c
    M src/mtype.c
    M src/scope.c
    M src/scope.h
    M src/statement.c
    M src/staticassert.c
    M src/struct.c
    M src/template.c
    A test/fail_compilation/failsafea.d
    A test/fail_compilation/failsafeb.d
    A test/fail_compilation/failsafec.d
    M test/runnable/Fix5140.d
    M test/runnable/testsafe.d
    M test/runnable/xtest46.d

  Log Message:
  -----------
  Merge pull request #652 from yebblies/issue6169

Issue 6169 - [CTFE] pure functions cannot compute constants using functions not marked as pure


Compare: https://github.com/D-Programming-Language/dmd/compare/515ff959e044...15a57832d0a9


More information about the dmd-internals mailing list