Question regarding C++ frontend

Peter Collingbourne pcc03@doc.ic.ac.uk
Fri May 2 15:39:00 GMT 2008


Hi,

In the C++ frontend, record_types maintain list(s) of the parameters
which were used to instantiate the type, one list for each "level" of
the instantiation.  I would like to know how to determine the list of
parameters that were used to instantiate "this" type e.g. in the case of
a type foo<int>::bar<long> I would like the tree_vec containing the type
"long".  Note that we can't always simply extract the last list of
parameters e.g. for the type foo<int>::baz the tree_vec required would
be empty or null whereas the tree_vec available has a single level for
"int".

Thanks,
-- 
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080502/3ced7191/attachment.sig>


More information about the Gcc mailing list