D.gnu - Multiple inheritance bug?
- Russell Wilkins (18/18) Dec 04 2004 I think this a bug? The sample code throws 'AssertError Failure
- Regan Heath (15/33) Dec 05 2004 FYI ... tested to work on Windows using DMD v0.107.
- Thomas Kuehne (15/33) Dec 05 2004 -----BEGIN PGP SIGNED MESSAGE-----
I think this a bug? The sample code throws 'AssertError Failure
/gcc/gc-3.3.3-3/gcc/d/phobos/internal/gc/gcx.d(1718)' when it's run. It
works fine for only a single level of inheritance.
class A : B
{
}
class B : C
{
}
class C
{
}
int main (char[][] args)
{
A a = new A();
return 0;
}
I'm using gdc on windows using cygwin 1.5.12-1 release.
Dec 04 2004
On Sat, 04 Dec 2004 16:24:43 +0000, Russell Wilkins
<rwilkins grovestarsoftware.com> wrote:
I think this a bug? The sample code throws 'AssertError Failure
/gcc/gc-3.3.3-3/gcc/d/phobos/internal/gc/gcx.d(1718)' when it's run. It
works fine for only a single level of inheritance.
class A : B
{
}
class B : C
{
}
class C
{
}
int main (char[][] args)
{
A a = new A();
return 0;
}
I'm using gdc on windows using cygwin 1.5.12-1 release.
FYI ... tested to work on Windows using DMD v0.107.
Have you tried changing the order of declaration for those classes i.e.
class C
{
}
class B : C
{
}
class A : B
{
}
it might be a bug related to the order of declaration.
Regan
Dec 05 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Added to DStress as
http://svn.kuehne.cn/dstress/run/class_08.d
http://svn.kuehne.cn/dstress/run/class_09.d
http://svn.kuehne.cn/dstress/run/class_10.d
FYI gdc-0.8 doesn't produce an error on Linux.
Thomas
Russell Wilkins schrieb am Sat, 04 Dec 2004 16:24:43 +0000:
I think this a bug? The sample code throws 'AssertError Failure
/gcc/gc-3.3.3-3/gcc/d/phobos/internal/gc/gcx.d(1718)' when it's run. It
works fine for only a single level of inheritance.
class A : B
{
}
class B : C
{
}
class C
{
}
int main (char[][] args)
{
A a = new A();
return 0;
}
I'm using gdc on windows using cygwin 1.5.12-1 release.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.9.13 (GNU/Linux)
iD8DBQFBtACy3w+/yD4P9tIRAucjAJ9bGqMl1RAuwqo9f/OC0PiKXOBYdgCdEhv2
g41FdoWClgKhc5BEbbAd6dY=
=A9/K
-----END PGP SIGNATURE-----
Dec 05 2004









"Regan Heath" <regan netwin.co.nz> 