This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38679] semantics of assignment in a return statement suspect
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2008 09:18:38 -0000
- Subject: [Bug c/38679] semantics of assignment in a return statement suspect
- References: <bug-38679-4507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2008-12-31 09:18 -------
The frontend already presents us with
;; Function f (null)
;; enabled by -tree-original
{
fff (x = 1);
return x = 1;, 1{no-warn};
}
note that other compilers IMHO correctly do the same for the function argument.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38679