https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81008
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Are you 100% sure this is safe. IIRC there are specific rules about restrict and it only takes about other pointers to restrict types.