www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12397] New: CTFE ICE CompiledCtfeFunction::walkAllVars with 2.065

https://d.puremagic.com/issues/show_bug.cgi?id=12397

           Summary: CTFE ICE CompiledCtfeFunction::walkAllVars with 2.065
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: mrmocool gmx.de


--- Comment #0 from Trass3r <mrmocool gmx.de> 2014-03-18 11:12:43 CET ---
Compiling DustMite master.
Here's the reduced version, removing ': int' makes it disappear:

$ cat splitter.d 
struct DSplitter
{
    enum Token : int
    {
        max = tokenLookup.length
    }

immutable string[Token.max] tokenText =
    {
    };

}
$ dmd splitter.d
splitter.d(5): Error: undefined identifier tokenLookup
splitter.d(8): Error: CTFE internal error: ErrorExp in splitter.d(8)

dmd: interpret.c:310: static int CompiledCtfeFunction::walkAllVars(Expression*,
void*): Assertion `0' failed.

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