https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86259
--- Comment #43 from Alejandro Colomar ---
GCC's manual also doesn't seem to document any deviation from ISO C
rules regarding mem*() functions. It would be good to document what is
the GCC interpretation of ISO C regarding those rules, and
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86259
--- Comment #42 from Alejandro Colomar ---
I'm very confused by this ticket.
The discussion seems to be settled by Martin Sebor that the presented
code has UB due to pointer provenance issues, according to the WG14
interpretation of the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86259
Jakub Jelinek changed:
What|Removed |Added
Status|NEW |RESOLVED
Target Milestone|8.5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86259
--- Comment #40 from Martin Sebor ---
(In reply to Richard Biener from comment #39)
> Martin - this is another one, is there sth simple safe that can be done on
> the 8 branch?
The patch series that resolved this while also avoiding the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86259
--- Comment #39 from Richard Biener ---
Martin - this is another one, is there sth simple safe that can be done on the
8 branch?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86259
Jakub Jelinek changed:
What|Removed |Added
Target Milestone|8.4 |8.5
--- Comment #38 from Jakub Jelinek
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86259
--- Comment #37 from Martin Liška ---
Fixed on trunk in r262522.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86259
Richard Biener changed:
What|Removed |Added
Status|ASSIGNED|NEW
Last reconfirmed|2018-06-21