https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98458
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org CC| |pault at gcc dot gnu.org --- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 49856 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49856&action=edit Fix for the PR Thank you for the report on this problem. The attached patch fixes the problem and regression tests OK. I need to do a bit more thinking about it because I was unable to find a point in general expression simplification where the fix could be applied. Instead, it only seems to work in the simplification of intrinsic functions. Fortunately, this seems to be the only place where it is needed. Paul