From f27113ad7a3e8b2f459099232400cf6b89c73c0f Mon Sep 17 00:00:00 2001 From: mmitchel Date: Tue, 17 Aug 1999 07:20:23 +0000 Subject: * cp-tree.h (CALL_DECLARATOR_PARMS): New macro. (CALL_DECLARATOR_QUALS): Likewise. (CALL_DECARATOR_EXCEPTION_SPEC): Likewise. * decl.c (grokdeclarator): Adjust to use them. * decl2.c (grokfield): Likewise. (reparse_absdcl_as_casts): Likewise. * lex.c (make_call_declarator): Likewise. (set_quals_and_spec): Likewise. * pt.c (tsubst): Likewise. * tree.c (mapcar): Remove special hack to handle third operand of a CALL_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28733 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/decl2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/cp/decl2.c') diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index e4d2d0e1120..7e0e23b6a64 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1590,7 +1590,7 @@ grokfield (declarator, declspecs, init, asmspec_tree, attrlist) && TREE_OPERAND (declarator, 0) && (TREE_CODE (TREE_OPERAND (declarator, 0)) == IDENTIFIER_NODE || TREE_CODE (TREE_OPERAND (declarator, 0)) == SCOPE_REF) - && parmlist_is_exprlist (TREE_OPERAND (declarator, 1))) + && parmlist_is_exprlist (CALL_DECLARATOR_PARMS (declarator))) { init = TREE_OPERAND (declarator, 1); declarator = TREE_OPERAND (declarator, 0); @@ -3733,7 +3733,7 @@ reparse_absdcl_as_casts (decl, expr) if (TREE_CODE (expr) == CONSTRUCTOR && TREE_TYPE (expr) == 0) { - type = groktypename (TREE_VALUE (TREE_OPERAND (decl, 1))); + type = groktypename (TREE_VALUE (CALL_DECLARATOR_PARMS (decl))); decl = TREE_OPERAND (decl, 0); expr = digest_init (type, expr, (tree *) 0); @@ -3747,7 +3747,7 @@ reparse_absdcl_as_casts (decl, expr) while (decl) { - type = groktypename (TREE_VALUE (TREE_OPERAND (decl, 1))); + type = groktypename (TREE_VALUE (CALL_DECLARATOR_PARMS (decl))); decl = TREE_OPERAND (decl, 0); expr = build_c_cast (type, expr); } -- cgit v1.2.1