aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 9d2589f..e94fd55 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -1306,7 +1306,8 @@ tree
get_first_fn (from)
tree from;
{
- if (TREE_CODE (from) == FUNCTION_DECL
+ if (TREE_CODE (from) == FUNCTION_DECL
+ || TREE_CODE (from) == TEMPLATE_ID_EXPR
|| DECL_FUNCTION_TEMPLATE_P (from))
return from;