https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45689
--- Comment #13 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Created attachment 42822 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42822&action=edit Patch which extends minval/maxval This looks promising - it just removes the special handling of maxval (which is incomplete), replacing it with the general implementation.