[Bug c++/48829] g++ no warning initializing a variable using itself

2019-11-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48829 Eric Gallager changed: What|Removed |Added CC||redi at gcc dot gnu.org

[Bug c++/48829] g++ no warning initializing a variable using itself

2018-11-21 Thread 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.

[Bug c++/48829] g++ no warning initializing a variable using itself

2018-11-21 Thread redi at gcc dot gnu.org
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.

[Bug c++/48829] g++ no warning initializing a variable using itself

2018-11-20 Thread egallager at gcc dot gnu.org
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?

[Bug c++/48829] g++ no warning initializing a variable using itself

2017-08-18 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48829 Eric Gallager changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/48829] g++ no warning initializing a variable using itself

2011-04-30 Thread redi at gcc dot gnu.org
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