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++/27952


Thanks for the comments.

Whilst I was invesitigating how the two functions in question came to
be called with NULL to respond to Andrew's mail I saw some other
possible approaches to fix this which hopefully will be more
acceptable that my original patch.

Cheers,
Lee.

On 6/12/06, Mark Mitchell <mark@codesourcery.com> wrote:
Lee Millward wrote:

> @@ -1442,6 +1442,9 @@ decay_conversion (tree exp)
>    tree type;
>    enum tree_code code;
>
> +  if(!exp)
> +    return error_mark_node;

We should never be passing NULL to decay_conversion or
initialize_artificial_var.  Something further up the chain is causing
the problem.

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



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