[dmd-internals] [D-Programming-Language/dmd] 78e4da: fix Issue 3449 - const and invariant struct member...

GitHub noreply at github.com
Sun Mar 10 00:57:18 PST 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 78e4dad96beccf795de36302feeb02d733553dc2
      https://github.com/D-Programming-Language/dmd/commit/78e4dad96beccf795de36302feeb02d733553dc2
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-03-07 (Thu, 07 Mar 2013)

  Changed paths:
    M src/declaration.c
    M test/runnable/hospital.d
    M test/runnable/test42.d
    M test/runnable/testconst.d

  Log Message:
  -----------
  fix Issue 3449 - const and invariant struct members do not behave according to spec

Non manifest-constant aggregate field now have runtime spaces.


  Commit: f5237c031df6eefafbe36811bb4d3b82a33f5918
      https://github.com/D-Programming-Language/dmd/commit/f5237c031df6eefafbe36811bb4d3b82a33f5918
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-03-07 (Thu, 07 Mar 2013)

  Changed paths:
    M src/expression.c
    M src/mtype.c
    M test/compilable/test8717.d
    M test/fail_compilation/fail61.d
    M test/runnable/testconst.d
    M test/runnable/xtest46.d

  Log Message:
  -----------
  Allow getting address of const/immutable field, but keep its constant folding


  Commit: 7557e919f72fdb02dc67bff0f5f3f7a656126f33
      https://github.com/D-Programming-Language/dmd/commit/7557e919f72fdb02dc67bff0f5f3f7a656126f33
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-03-07 (Thu, 07 Mar 2013)

  Changed paths:
    M src/optimize.c

  Log Message:
  -----------
  fix Assertion failure: '0' on line 1226 in file 'glue.c'


  Commit: d008bffba438b2c1d0fd533b875df0d984534de2
      https://github.com/D-Programming-Language/dmd/commit/d008bffba438b2c1d0fd533b875df0d984534de2
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-03-07 (Thu, 07 Mar 2013)

  Changed paths:
    M src/expression.c
    M test/fail_compilation/diag8770.d

  Log Message:
  -----------
  Improve error message for the non-mutable variable initialization.

If a non-local const/immutable variables has initializer, it cannot be re-initialized in the constructor.


  Commit: 746c3cb364614f7521a86281a35193db29fadd6c
      https://github.com/D-Programming-Language/dmd/commit/746c3cb364614f7521a86281a35193db29fadd6c
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-03-07 (Thu, 07 Mar 2013)

  Changed paths:
    M src/expression.c
    R test/fail_compilation/diag8770.d
    A test/runnable/test3449.d

  Log Message:
  -----------
  Revert previous change, and explicitly allow non-mutable field assignment during construction.


  Commit: 9808f85a876e8cb3435daeb3c97765bbf75ac66a
      https://github.com/D-Programming-Language/dmd/commit/9808f85a876e8cb3435daeb3c97765bbf75ac66a
  Author: Walter Bright <walter at walterbright.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

  Changed paths:
    M src/declaration.c
    M src/expression.c
    M src/mtype.c
    M src/optimize.c
    M test/compilable/test8717.d
    R test/fail_compilation/diag8770.d
    M test/fail_compilation/fail61.d
    M test/runnable/hospital.d
    A test/runnable/test3449.d
    M test/runnable/test42.d
    M test/runnable/testconst.d
    M test/runnable/xtest46.d

  Log Message:
  -----------
  Merge pull request #93 from 9rnsr/fix3449

Issue 3449 - const and invariant struct members do not behave according to spec


Compare: https://github.com/D-Programming-Language/dmd/compare/8ca60776962c...9808f85a876e


More information about the dmd-internals mailing list