www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11790] New: ICE(interpret.c): passing creation of array with type string as size to CTFE

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11790

           Summary: ICE(interpret.c): passing creation of array with type
                    string as size to CTFE
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: overv161 gmail.com


--- Comment #0 from Alexander Overvoorde <overv161 gmail.com> 2013-12-21
10:46:46 PST ---
When compiling the following code:

    string[string] crash = new string[string];

The following output is given:

    crash.d(1): Error: string is not an expression
    crash.d(1): Error: cannot implicitly convert expression (string) of type
string to ulong
    CTFE: ErrorExp in crash.d(1)
    dmd: interpret.c:310: static int
CompiledCtfeFunction::walkAllVars(Expression*, void*): Assertion `0' failed.
    Aborted (core dumped)

This seems like a failure of error propagation.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 21 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11790


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
                 CC|                            |yebblies gmail.com


--- Comment #1 from yebblies <yebblies gmail.com> 2013-12-22 16:07:09 EST ---
https://github.com/D-Programming-Language/dmd/pull/3003

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 21 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11790



--- Comment #2 from github-bugzilla puremagic.com 2013-12-21 22:04:59 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e23814fb22514f0c8f156f5e95b1779a16ae05b5
Fix Issue 11790 - ICE(interpret.c): passing creation of array with type string
as size to CTFE

https://github.com/D-Programming-Language/dmd/commit/6854a582566b76cd34a66dd33c8d007bc9f65d9c
Merge pull request #3003 from yebblies/issue11790

Issue 11790 - ICE(interpret.c): passing creation of array with type string as
size to CTFE

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 21 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11790


yebblies <yebblies gmail.com> changed:

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


--- Comment #3 from yebblies <yebblies gmail.com> 2013-12-22 17:07:56 EST ---
< 12 hours

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