This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30019] g++ did not issue a warning when it (IMO) could have
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2006 03:22:46 -0000
- Subject: [Bug c++/30019] g++ did not issue a warning when it (IMO) could have
- References: <bug-30019-13651@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from bangerth at dealii dot org 2006-11-30 03:22 -------
The point is that the temporary isn't unused: you call operator=(char*) on it.
The compiler can't know if that has any side effects that you may intend to
have happen...
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30019