www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10259] New: ICE on invalid compile-time class instantiation

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

           Summary: ICE on invalid compile-time class instantiation
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: timon.gehr gmx.ch


--- Comment #0 from timon.gehr gmx.ch 2013-06-03 16:38:30 PDT ---
DMD 2.063:

class D{
    int x;
    D d = {auto x = new D(); return x;}();
}

enum x = new D;


/d825/f688.d(3): Error: delegate f688.D.__lambda1 function literals cannot be
class members
/d825/f688.d(3): Error: delegate f688.D.__lambda1 circular dependency.
Functions cannot be interpreted while being compiled
/d825/f688.d(3): called from here: (*_error_()
{
auto x = new D;
return x;
}
)()
dmd: ctfeexpr.c:354: Expression* copyLiteral(Expression*): Assertion `0'
failed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 03 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10259


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
                 CC|                            |henning still-hidden.de


--- Comment #1 from Henning Pohl <henning still-hidden.de> 2013-08-27 12:58:06
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2501

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 27 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10259


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com


--- Comment #2 from yebblies <yebblies gmail.com> 2013-11-04 03:18:52 EST ---
This bug doesn't seem to ice any more, on win32.

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