From d1d697eae32d06055e772111df2dc099544c7369 Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 10 Feb 2011 16:29:39 +0000 Subject: PR c++/47511 * semantics.c (potential_constant_expression_1): Handle TEMPLATE_DECL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170005 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/semantics.c | 1 + 2 files changed, 6 insertions(+) (limited to 'gcc/cp') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6dd6137ee5d..f247933dba0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2011-02-09 Jason Merrill + + PR c++/47511 + * semantics.c (potential_constant_expression_1): Handle TEMPLATE_DECL. + 2011-02-03 Dodji Seketeli PR c++/47398 diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 6d45fb9b849..7c06cc3d84f 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -7263,6 +7263,7 @@ potential_constant_expression_1 (tree t, bool want_rval, tsubst_flags_t flags) { case FUNCTION_DECL: case BASELINK: + case TEMPLATE_DECL: case OVERLOAD: case TEMPLATE_ID_EXPR: case LABEL_DECL: -- cgit v1.2.1