www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4055] New: ICE(tocsym.c:407) virtual Symbol* FuncDeclaration::toSymbol(): Assertion `0' failed.

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

           Summary: ICE(tocsym.c:407) virtual Symbol*
                    FuncDeclaration::toSymbol(): Assertion `0' failed.
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: robert octarineparrot.com


--- Comment #0 from Robert Clipsham <robert octarineparrot.com> 2010-04-03
04:45:34 BST ---
Test case:
a.d:
----
import b;
class Sub : Super
{
        int fail()
        {
                return Super.fail();
        }

}
----
b.d:
----
class Super
{
        int fail()
        out (result) {}
        body
        {
                assert(0);
        }
}
----
Compile with dmd -c a.d. If you compile with dmd a.d b.d the ICE does not
occur. DMD outputs:
b.d(5): Error: function __ensure forward declaration
linkage = 0
dmd: tocsym.c:407: virtual Symbol* FuncDeclaration::toSymbol(): Assertion `0'
failed.

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



--- Comment #1 from Robert Clipsham <robert octarineparrot.com> 2010-04-03
04:48:57 BST ---
I should note this is blocking a linux port of ddmd.

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


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au


--- Comment #2 from Don <clugdbug yahoo.com.au> 2010-04-02 22:37:23 PDT ---
Duplicate of 3602?

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


Robert Clipsham <robert octarineparrot.com> changed:

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


--- Comment #3 from Robert Clipsham <robert octarineparrot.com> 2010-04-03
13:18:21 BST ---
You are correct Don, it is a duplicate, sorry for the noise.

*** This issue has been marked as a duplicate of issue 3602 ***

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