This is the mail archive of the gcc-bugs@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]

[Bug c/38679] semantics of assignment in a return statement suspect



------- 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


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