https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48829
Eric Gallager changed:
What|Removed |Added
CC||redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48829
--- Comment #5 from Jonathan Wakely ---
Well, that one already does. So I'd expect std::string("str") + s and f(i) to
do so as well.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48829
--- Comment #4 from Jonathan Wakely ---
I would expect the expression 5 + i to give a -Wuninitialized warning.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48829
--- Comment #3 from Eric Gallager ---
Is the expectation here for the warning to come from -Wuninitialized,
-Winit-self, or some other flag?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48829
Eric Gallager changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48829
--- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2011-04-30
19:52:08 UTC ---
The string case calls a function (the overloaded operator+ or std::string) so
is actually closer to:
int f(int);
int i = f(i);
which doesn't warn either