This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64870] value not set via reference
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 Jan 2015 06:34:08 +0000
- Subject: [Bug c++/64870] value not set via reference
- Auto-submitted: auto-generated
- References: <bug-64870-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64870
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
-Wsequence-point fails to warn, but that's still a bug in your program, there
is no reason to evaluate setval before reading val and not after. Split your
cout lines in two.