This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR40787, reject assignment from void function result
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 18 Jul 2009 10:37:41 +0000 (UTC)
- Subject: Re: [PATCH] Fix PR40787, reject assignment from void function result
- References: <alpine.LNX.2.00.0907181151390.16347@zhemvz.fhfr.qr>
On Sat, 18 Jul 2009, Richard Guenther wrote:
> This fixes PR40787 by rejecting the code from the gimplifier. I
> don't know if a C frontend solution would be easier/better
> (maybe mark the implicit declarations result as used?).
>
> Thus, Joseph - do you think that rejecting this during gimplification
> is ok?
Yes, I think that's OK.
--
Joseph S. Myers
joseph@codesourcery.com