[dmd-internals] [D-Programming-Language/dmd] ddcde3: Fix issue 8673 enum z = [0][(()=>$-1)()]; crashes ...

GitHub noreply at github.com
Sun Sep 23 20:57:09 PDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: ddcde35249c6c780422e11aa4ac965523f58aaea
      https://github.com/D-Programming-Language/dmd/commit/ddcde35249c6c780422e11aa4ac965523f58aaea
  Author: Don Clugston <don.clugston at sociomantic.com>
  Date:   2012-09-18 (Tue, 18 Sep 2012)

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

  Log Message:
  -----------
  Fix issue 8673 enum z = [0][(()=>$-1)()]; crashes the compiler

variables with CTFE storage class shouldn't be treated as globals.
(__dollar is a funny hack, it's neither global nor local).


  Commit: 8f47d6113c8538131397ea2f68547ba2d859efb2
      https://github.com/D-Programming-Language/dmd/commit/8f47d6113c8538131397ea2f68547ba2d859efb2
  Author: Walter Bright <walter at walterbright.com>
  Date:   2012-09-23 (Sun, 23 Sep 2012)

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

  Log Message:
  -----------
  Merge pull request #1127 from donc/ice8673ctfe_dollar

Fix issue 8673 enum z = [0][(()=>$-1)()]; crashes the compiler


Compare: https://github.com/D-Programming-Language/dmd/compare/dfac005c106c...8f47d6113c85


More information about the dmd-internals mailing list