Difference between struct and class in internal tree

Gabriel Dos Reis gdr@codesourcery.com
Sun Feb 11 10:29:00 GMT 2001


"Thomas R. Dean" <dean@cs.queensu.ca> writes:

[...]

| way to distinguish a class from a structure in the tree.  They both
| come out as a RECORD_TYPE.  Is there any way to distinguish the two?

A starting point might be `CLASSTYPE_DECLARED_CLASS'  predicate.

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com



More information about the Gcc mailing list