[dmd-internals] [D-Programming-Language/dmd] 896c18: fix Issue 13043 - Redundant linking to TypeInfo in...

GitHub via dmd-internals dmd-internals at puremagic.com
Sat Jul 5 18:13:49 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 896c1807e1961c333df1f89c4c0ce0feb2fca759
      https://github.com/D-Programming-Language/dmd/commit/896c1807e1961c333df1f89c4c0ce0feb2fca759
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2014-07-05 (Sat, 05 Jul 2014)

  Changed paths:
    M src/typinf.c
    A test/runnable/imports/link13043a.d
    A test/runnable/link13043.d

  Log Message:
  -----------
  fix Issue 13043 - Redundant linking to TypeInfo in non-root module


  Commit: a5c8c3afc84cad8ef62c119c4101acb8e6de3140
      https://github.com/D-Programming-Language/dmd/commit/a5c8c3afc84cad8ef62c119c4101acb8e6de3140
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2014-07-05 (Sat, 05 Jul 2014)

  Changed paths:
    M src/aggregate.h
    M src/clone.c
    M src/idgen.c
    M src/struct.c
    M src/toobj.c
    M src/typinf.c
    M test/runnable/testtypeid.d

  Log Message:
  -----------
  fix Issue 13045 - TypeInfo.getHash should return consistent result with object equality by default

If struct member field has toHash method, or has non-bitwise equality, generate __xtoHash implicitly to guarantee `a != b || typeid(S).getHash(&a) == typeid(S).getHash(&b)`.


  Commit: a2f9ddf4eb7d5ffeb4bb157d5dcda9efe2f5b290
      https://github.com/D-Programming-Language/dmd/commit/a2f9ddf4eb7d5ffeb4bb157d5dcda9efe2f5b290
  Author: Walter Bright <walter at walterbright.com>
  Date:   2014-07-05 (Sat, 05 Jul 2014)

  Changed paths:
    M src/aggregate.h
    M src/clone.c
    M src/idgen.c
    M src/struct.c
    M src/toobj.c
    M src/typinf.c
    A test/runnable/imports/link13043a.d
    A test/runnable/link13043.d
    M test/runnable/testtypeid.d

  Log Message:
  -----------
  Merge pull request #3710 from 9rnsr/fix_hash

Introduce correct default hash calculation that is consistent with object equality


Compare: https://github.com/D-Programming-Language/dmd/compare/49bc16e6c93a...a2f9ddf4eb7d


More information about the dmd-internals mailing list