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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 60716
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60716&action=edit
This is the fix I had came up with

I had missed this bug report when I looked into PR 119226. But attached is the
patch which I came up with. It just uses the type of the expr if non-null
otherwise it goes back to size_type_node .
Plus adds the testcase that ICEs from DOM too.

Reply via email to