[Issue 4055] New: ICE(tocsym.c:407) virtual Symbol* FuncDeclaration::toSymbol(): Assertion `0' failed.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 2 20:45:36 PDT 2010
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 at puremagic.com
ReportedBy: robert at octarineparrot.com
--- Comment #0 from Robert Clipsham <robert at 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: -------
More information about the Digitalmars-d-bugs
mailing list