https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89722
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- typeof(*(bits)) Try using decltype instead; typeof is a GNU extension. or use: typeof(*(bits) + 0) Which will remove the const part.