[Bug c++/51193] std::cout is behaving strangely

2011-11-17 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51193

Jonathan Wakely redi at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID

--- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2011-11-17 
12:47:09 UTC ---
the code is simply buggy - valgrind shows loads of errors


[Bug c++/51193] std::cout is behaving strangely

2011-11-17 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51193

--- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org 2011-11-17 
13:19:11 UTC ---
you should compile with warnings before reporting bugs:

b.cc: In function 'int rCount(int, int, int*)':
b.cc:30: warning: control reaches end of non-void function