Bug 37 – Inconsistent type information generated for .classinfo accessing
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
PowerPC
OS
Mac OS X
Creation time
2006-03-12T12:48:00Z
Last change time
2015-06-09T05:14:58Z
Keywords
ice-on-valid-code, patch
Assigned to
dvdfrdmn
Creator
braddr
Comments
Comment #0 by braddr — 2006-03-12T12:48:24Z
gdc/gcc has a mode for the compiler to check lots of internal consistency data. During compilation of phobos, a problem with .classinfo accessing was found. Adding the following cast matches things up:
--- mtype.c.orig 2006-03-11 20:37:17.000000000 -0600
+++ mtype.c 2006-03-11 20:37:21.000000000 -0600
@@ -3919,6 +3919,7 @@
}
else
{
+ e = new CastExp(e->loc, e, t->pointerTo()->pointerTo());
e = new PtrExp(e->loc, e);
e->type = t->pointerTo();
if (sym->isInterfaceDeclaration())