Can't you make the argument that even in C/C++ they could have enforced different "Language rules" like forcing no warnings? When compiling with gcc you could use -Wunreachable-code. Then it is part of the process.
EDIT: with -Werror it will make this bug an error but not necessarily the class of bugs.