http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51264
--- Comment #1 from vries at gcc dot gnu.org 2011-11-22 01:38:07 UTC --- Minimal example tree.cc: ... extern void iterative_hash (const int *); unsigned int iterative_hash_expr (unsigned int val) { int code; switch (val) { default: iterative_hash (&code); return 0; break; } } ... to reproduce: ... gcc -Werror -Wreturn-type -O0 tree.cc -S -fno-exceptions ...