This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about DECL_RESULT macro
- To: gcc at gcc dot gnu dot org
- Subject: Question about DECL_RESULT macro
- From: Ira Ruben <ira at apple dot com>
- Date: Fri, 29 Jun 2001 15:51:25 -0700
I am trying to gain more understanding of gcc trees. In
cp/cp-tree.def, for TEMPLATE_DECL, the comments that document the key
fields of a TEMPLATE_DECL say that a DECL_RESULT is for non-class
templates. So if I interpret this right, if "node" is a
TEMPLATE_DECL then DECL_RESULT(node) points to some other node.
However, the DECL_RESULT macro is defined (in tree.h) to do a
FUNCTION_DECL_CHECK. That only checks for FUNCTION_DECL nodes and
will fail for a TEMPLATE_DECL node. So, is the TEMPLATE_DECL comment
wrong in cp/cp-tree.def for DECL_RESULT and should that just be
DECL_TEMPLATE_RESULT instead?
Ira Ruben