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: nob...@puremagic.com
        ReportedBy: rob...@octarineparrot.com


--- Comment #0 from Robert Clipsham <rob...@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: -------

Reply via email to