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