diff options
Diffstat (limited to 'gcc/cp/pt.c')
| -rw-r--r-- | gcc/cp/pt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index f0350423e7c..b8a02fbe47e 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -12027,7 +12027,9 @@ build_non_dependent_expr (tree expr) return expr; /* Preserve OVERLOADs; the functions must be available to resolve types. */ - if (TREE_CODE (expr) == OVERLOAD) + if (TREE_CODE (expr) == OVERLOAD + || TREE_CODE (expr) == FUNCTION_DECL + || TREE_CODE (expr) == TEMPLATE_DECL) return expr; /* Preserve string constants; conversions from string constants to "char *" are allowed, even though normally a "const char *" |

