This is the mail archive of the
mailing list for the GCC project.
C++ FE question: When is CLASSTYPE_VBASECLASSES valid?
- From: "=?big5?b?RG91ZyBLd2FuICjD9q62vHcp?=" <dougkwan at google dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 6 Mar 2008 18:36:08 -0800
- Subject: C++ FE question: When is CLASSTYPE_VBASECLASSES valid?
I have a question about the validity of CLASSTYPE_VBASECLASSES.
Due to templates, it is not possible to know if a class has virtual
bases or not until the class is fully instantiated. Is checking
processing_template_decl sufficient to guarantee that
CLASSTYPE_VBASECLASSES is valid?