On 04/01/2013 12:41 PM, Paolo Carlini wrote:
+#define DECL_FUNCTION_TEMPLATE_P(NODE) \ + (TREE_CODE (NODE) == TEMPLATE_DECL \ + && DECL_TEMPLATE_RESULT (NODE) != NULL_TREE \
Do we need the NULL_TREE check? That is, do we still build a template with no result?
PS: In my opinion we should also rename DECL_FUNCTION_MEMBER_P to DECL_MEMBER_FUNCTION_P. Objections?
The current name makes it clearer (to me, anyway) that the macro assumes that we already know we're looking at a FUNCTION_DECL.
Jason