diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-10 16:29:39 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-10 16:29:39 +0000 |
commit | d1d697eae32d06055e772111df2dc099544c7369 (patch) | |
tree | dc276c2aad82f106457b7855e6995e5ea8788043 /gcc/cp | |
parent | 24ad6c43457b525c566a2b0b4065a3ac5532c8c7 (diff) | |
download | gcc-d1d697eae32d06055e772111df2dc099544c7369.tar.gz |
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
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 1 |
2 files changed, 6 insertions, 0 deletions
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 <jason@redhat.com> + + PR c++/47511 + * semantics.c (potential_constant_expression_1): Handle TEMPLATE_DECL. + 2011-02-03 Dodji Seketeli <dodji@redhat.com> 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: |