www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7847] New: [ICE] Internal error: e2ir.c 688

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

           Summary: [ICE] Internal error: e2ir.c 688
           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



DMD 2.058/DMD 2.059head
---
Bar New(T,A...)(A args){return null;}
class Bar{
    this(Foo){ }
    static Bar create(){
        return New!Bar(Foo(0));
    }
}

struct Foo{
    int x;
    this(T)(T ){void function() foo = {Bar.create();};}
    void bar(){Foo r=Foo("");}
}
---
---
Internal error: e2ir.c 688
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 06 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7847


timon.gehr gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[ICE] Internal error:       |[ICE] Internal error:
                   |e2ir.c 688                  |e2ir.c 688 with -inline



The -inline switch is necessary to trigger the bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 06 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7847




The following variation crashes the compiler with a segmentation fault:

Bar New(T)(Foo args){return null;}
class Bar{
    this(Foo){ }
    static Bar create(){
        return New!Bar(Foo(0));
    }
}

struct Foo{
    int x;
    this(T)(T ){void function() foo = {Bar.create();};}
    void bar(){Foo r=Foo("");}
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 06 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7847




The following variation causes an ICE in a different location:
---
Bar New(T,A...)(A args){return null;}
class Bar{
    this(Foo){ }
    static Bar create(){
        return New!Bar(Foo(0)).foo();
    }
    Bar foo(){return this;}
}

struct Foo{
    int x;
    this(T)(T ){void function() foo = {Bar.create();};}
    void bar(){Foo r=Foo("");}
}
---
---
Internal error: e2ir.c 3500
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 06 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7847


Robert Clipsham <robert octarineparrot.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robert octarineparrot.com
           See Also|                            |http://d.puremagic.com/issu
                   |                            |es/show_bug.cgi?id=7851



16:31:03 BST ---
Please report another bug for the ICE in a different location. See also bug


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 02 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7847


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |WORKSFORME



22:20:39 PDT ---
All the examples compile successfully with 2.064 head.

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