This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix PR c++/15759: Function pointers in default arguments


Volker Reichelt <reichelt@igpm.rwth-aachen.de> writes:

| >> ===================================================================
| >> --- gcc/gcc/cp/tree.c	15 Jun 2005 00:41:34 -0000	1.437
| >> +++ gcc/gcc/cp/tree.c	16 Jun 2005 16:58:47 -0000
| >> @@ -1181,7 +1181,12 @@ bot_manip (tree* tp, int* walk_subtrees,
| >>        return NULL_TREE;
| >>      }
| >>    else if (TREE_CODE (t) == CALL_EXPR)
| >> -    mark_used (TREE_OPERAND (TREE_OPERAND (t, 0), 0));
| >> +    {
| >> +      t = TREE_OPERAND (t, 0);
| >> +      if (TREE_CODE (t) == CONVERT_EXPR)
| >> +        t = TREE_OPERAND (t, 0);
| >> +      mark_used (t);
| >> +    }


Please add a comment.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]