Thread overview
[Issue 10283] New: ICE(interpret.c): passing struct with failed initalizer to CTFE
Jun 06, 2013
Don
Jun 09, 2013
Henning Pohl
June 06, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10283

           Summary: ICE(interpret.c): passing struct with failed
                    initalizer to CTFE
           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> 2013-06-06 05:38:37 PDT ---
Repy blah(Repy xxx) { return xxx; }
Repy repy = blah(Repy());

struct Repy
{
    string source = 7;
}
---
bug.d(7): Error: cannot implicitly convert expression (7) of type int to string
CTFE: ErrorExp in bug.d(3)
dmd: interpret.c:310: static int CompiledCtfeFunction::walkAllVars(Expression*,
void*): Assertion `0' failed.
Aborted

This is a failure of error propagation.

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



--- Comment #1 from github-bugzilla@puremagic.com 2013-06-07 03:49:11 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/453da5f5619c287c31ddb524884aea8ce70d3fc1 Fix bug 10283 ICE(interpret.c): passing struct with failed initializer to CTFE

If a struct literal contains an error field, it's an error.

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


Henning Pohl <henning@still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |henning@still-hidden.de
         Resolution|                            |FIXED


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