https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108306
Andrew Macleod <amacleod at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #54286|0 |1 is obsolete| | --- Comment #11 from Andrew Macleod <amacleod at redhat dot com> --- Created attachment 54287 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54287&action=edit simpler patch actually, its even simpler than that. The original code was fine, it was returning varying instead of [0,0] for the out of bounds cases.