This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ FE question: When is CLASSTYPE_VBASECLASSES valid?


Doug Kwan (éæå) wrote:

    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?

No; if the class is presently being defined, that will not be set. However, it should be safe to check that for a complete class when !processing_template_decl.


--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]