public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38679] semantics of assignment in a return statement suspect
[not found] <bug-38679-4@http.gcc.gnu.org/bugzilla/>
@ 2021-09-17 7:11 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-17 7:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38679
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.0
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
Keywords| |wrong-code
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This changed in GCC 4.6.0 with r0-102336 which also clarify the documentation
on volatile so fixed for GCC 4.6.0.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/38679] semantics of assignment in a return statement suspect
2008-12-31 0:56 [Bug c/38679] New: " dan at math dot uiuc dot edu
@ 2008-12-31 9:19 ` rguenth at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-31 9:19 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-17 7:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-38679-4@http.gcc.gnu.org/bugzilla/>
2021-09-17 7:11 ` [Bug c/38679] semantics of assignment in a return statement suspect pinskia at gcc dot gnu.org
2008-12-31 0:56 [Bug c/38679] New: " dan at math dot uiuc dot edu
2008-12-31 9:19 ` [Bug c/38679] " rguenth at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).