Thread overview
[Issue 8276] New: [CTFE] ICE when reading variable from nested function
Jun 21, 2012
Don
Jul 10, 2012
Don
June 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8276

           Summary: [CTFE] ICE when reading variable from nested function
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: clugdbug@yahoo.com.au


--- Comment #0 from Don <clugdbug@yahoo.com.au> 2012-06-20 23:45:45 PDT ---
void blah(int n)
{
      const int X = 4 + n; // ICE
//    const int X = 4;     // ok
//    int X = 4;           // ICE

    int far() { return X; }
    static assert(far());
}

dmd: interpret.c:2019: Expression* getVarExp(Loc, InterState*, Declaration*, CtfeGoal): Assertion `0' failed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 25, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8276



--- Comment #1 from github-bugzilla@puremagic.com 2012-06-25 14:55:30 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/02d3d195757654a77f7fb79dda692834c5b35aab Fix issue 8276 [CTFE] ICE when reading variable from nested function

https://github.com/D-Programming-Language/dmd/commit/09d99346d5cb174c0d266f9d89446c9cdb577c91 Merge pull request #1026 from donc/ice8276ctfeNested

Fix issue 8276 [CTFE] ICE when reading variable from nested function

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8276


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------