diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-08-27 08:41:09 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-08-27 08:41:09 +0000 |
commit | 11729fa7a08b3b36007ab2754dad18ce73f1a69c (patch) | |
tree | 6ceb94b895bd2c9c41d3b1065adc6a44204e84f8 | |
parent | 5aa1106101358c08d5f9654e601595484fc7bf52 (diff) | |
download | gcc-11729fa7a08b3b36007ab2754dad18ce73f1a69c.zip gcc-11729fa7a08b3b36007ab2754dad18ce73f1a69c.tar.gz gcc-11729fa7a08b3b36007ab2754dad18ce73f1a69c.tar.bz2 |
decl.c (grokfndecl): Remove old bison hack.
2013-08-27 Paolo Carlini <paolo.carlini@oracle.com>
* decl.c (grokfndecl): Remove old bison hack.
From-SVN: r202017
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 11 |
2 files changed, 4 insertions, 11 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c110d91..98d007e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2013-08-27 Paolo Carlini <paolo.carlini@oracle.com> + + * decl.c (grokfndecl): Remove old bison hack. + 2013-08-26 Jan Hubicka <jh@suse.cz> * cp-tree.h (DECL_CONSTRUCTOR_P, DECL_DESTRUCTOR_P): Use diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 95d5bbd..4076a24 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7427,17 +7427,6 @@ grokfndecl (tree ctype, the information in the TEMPLATE_ID_EXPR. */ SET_DECL_IMPLICIT_INSTANTIATION (decl); - if (TREE_CODE (fns) == COMPONENT_REF) - { - /* Due to bison parser ickiness, we will have already looked - up an operator_name or PFUNCNAME within the current class - (see template_id in parse.y). If the current class contains - such a name, we'll get a COMPONENT_REF here. Undo that. */ - - gcc_assert (TREE_TYPE (TREE_OPERAND (fns, 0)) - == current_class_type); - fns = TREE_OPERAND (fns, 1); - } gcc_assert (identifier_p (fns) || TREE_CODE (fns) == OVERLOAD); DECL_TEMPLATE_INFO (decl) = build_template_info (fns, args); |