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++/48829] g++ no warning initializing a variable using itself


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 (although it should do, ideally)

This is similar to PR 48483, maybe even a dup.


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