This is the mail archive of the
mailing list for the GCC project.
C++ typeinfo and vtables vs. DECL_CONTEXT.
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 07 May 2009 20:59:10 +0100
- Subject: C++ typeinfo and vtables vs. DECL_CONTEXT.
This may be a bit of a noob question, but why does the var_decl for a class'
vtable have a DECL_CONTEXT referring to the owning record_type, but the
var_decl for its typeinfo doesn't?
(On i386/PE, this leads to typeinfo not being dllexported.)