Where to put member pointers in the type hierarchy?

Hi,

I'm currently implementing pointers-to-members, and now that I can parse
the declaration, I need to extend the AST type hierarchy. So I'm
wondering where to put member pointers. Should they be a subclass of
PointerType, of PointerLikeType, or just of Type?

Doug, I'm sure you've already thought about this.

Sebastian

I'm currently implementing pointers-to-members, and now that I can parse
the declaration,

Cool!

I need to extend the AST type hierarchy. So I'm
wondering where to put member pointers. Should they be a subclass of
PointerType, of PointerLikeType, or just of Type?

In standards parlance, member pointers are not actually pointers, so they should subclass "Type".

  - Doug

Douglas Gregor wrote:

No, I don't particularly like PointerLike. It's only really useful for CodeGen, IMHO, and it doesn't even save that much effort their. Member pointers are their own kind of beast, that should subclass Type.

   - Doug

FWIW, I agree,

-Chris