------- Comment #7 from mark at codesourcery dot com  2006-04-19 16:57 -------
Subject: Re:  [4.0/4.1/4.2 Regression] Treating a class object
 as a function with member variables causes hang

reichelt at gcc dot gnu dot org wrote:
> ------- Comment #6 from reichelt at gcc dot gnu dot org  2006-04-19 09:34 
> -------
> Mark,
> are you really working on this one or did you only accidentally assign the PR
> to
> you? 

Well, I planned to fix it before the next release, but I wasn't actually
doing anything on it.  You're always welcome to fix my bugs. :-)

> The following fixes the problem for me and allows to get rid of
> error_mark_list as it is then unused:
> 
> ===================================================================
> --- gcc/gcc/cp/typeck.c 2006-04-18 17:32:06 +0200
> +++ gcc/gcc/cp/typeck.c 2006-04-18 17:32:31 +0200
> @@ -2788,7 +2788,7 @@ convert_arguments (tree typelist, tree v
>             }
>           else
>             error ("too few arguments to function");
> -         return error_mark_list;
> +         return error_mark_node;
>         }
>      }

I can't argue with that. :-)  This patch, and the removal of
error_mark_list are fine.

Thanks,


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26036

Reply via email to