https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27214
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> --- Fixed. That the POINTER_PLUS_EXPR is unsigned sizetype is a design decision, it is interpreted signed and thus there is no bad overflow. Yes, we should have used signed sizetype.