[Bug c++/51264] O0 Bootstrap failure: control reaches end of non-void function
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 22 02:53:00 GMT 2011
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
...
More information about the Gcc-bugs
mailing list