Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for two important CTFE regressions #37

Merged
merged 5 commits into from
Apr 30, 2011

Commits on Apr 20, 2011

  1. 5865 __dollar cannot be read at compile time

    Now that $ is constant-folded correctly during the optimize step, the limited
    constant-folding in dsymbol can be removed. It had the effect of creating
    __dollar=0 in zombie cases where constant folding wasn't quite possible.
    A big mess.
    
    Here's a very simple new scheme: __dollar is still initialized for tuples, but
    for arrays, it is ALWAYS void-initialized. Later, it might be turned into an
    integer in the optimize step; otherwise, it becomes a runtime value.
    Don Clugston committed Apr 20, 2011
    Configuration menu
    Copy the full SHA
    03e022f View commit details
    Browse the repository at this point in the history
  2. 5840 Cannot assign to an array member of struct in CTFE

    The implementation now shares most of the same code as array variable
    assignment.
    Don Clugston committed Apr 20, 2011
    Configuration menu
    Copy the full SHA
    fa0b7ca View commit details
    Browse the repository at this point in the history
  3. Test cases for 5840 and 5685

    Don Clugston committed Apr 20, 2011
    Configuration menu
    Copy the full SHA
    2b3b73c View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2011

  1. CTFE: Slices of null arrays should have length 0

    This caused a foreach CTFE regression, and also refused code like
    int[]a=null; int [] b = a[0..$];
    Don Clugston committed Apr 23, 2011
    Configuration menu
    Copy the full SHA
    3f68fd4 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2011

  1. Build fix: g++ doesn't allow lvalues to be cast

    Don Clugston committed Apr 25, 2011
    Configuration menu
    Copy the full SHA
    d835154 View commit details
    Browse the repository at this point in the history