https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79683

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Maybe build_qualified_type with TYPE_QUALS of the original pointer would do it.
I'm surprised we don't copy over const either.

Reply via email to