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