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]

DECL_TEMPLATE_INFO and TYPE_DECL nodes


In what situations is it valid to call DECL_TEMPLATE_INFO() on a
TYPE_DECL node?

I am using DECL_TEMPLATE_INFO in order to see if a DECL node has any
template information associated with it. The documentation says:

For a VAR_DECL, FUNCTION_DECL, TYPE_DECL or TEMPLATE_DECL
template-specific information.

but each time i try to call it with a TYPE_DECL it segfaults.

Thanks,
Brendon.


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