http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48672
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-04-18 21:54:18 UTC --- These warnings are semi correct. The problem is that GCC does not know that the enum value of either this->version or Get_version() cannot be either ALLOCATED_BLOCK_MAP_V1 or ALLOCATED_BLOCK_MAP_V2 .