This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
DECL_TEMPLATE_INFO and TYPE_DECL nodes
- From: Brendon Costa <brendon at christian dot net>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 28 Oct 2006 19:38:57 +1000
- Subject: 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.