diff --git a/dmd2/mtype.c b/dmd2/mtype.c index 4e0bfe4b..2fd0090d 100644 --- a/dmd2/mtype.c +++ b/dmd2/mtype.c @@ -5619,14 +5619,14 @@ Expression *TypeDelegate::dotExp(Scope *sc, Expression *e, Identifier *ident) #endif if (ident == Id::ptr) { - e = new GEPExp(e->loc, e, ident, 0); + e = new GEPExp(e->loc, e, ident, 0); e->type = tvoidptr; return e; } else if (ident == Id::funcptr) { e = new GEPExp(e->loc, e, ident, 1); - e->type = tvoidptr; + e->type = next->pointerTo(); return e; } else