https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780
--- Comment #4 from Jonathan Wakely ---
Yes that's the nature of undefined behaviour. It might have surprising results.
Don't write code with undefined behaviour.
The FIXED resolution means a bug in GCC was fixed, not that your problem has
been
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780
Andreas Schwab changed:
What|Removed |Added
Resolution|FIXED |INVALID
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780
Luc FETY changed:
What|Removed |Added
Resolution|INVALID |FIXED
--- Comment #3 from Luc FETY ---
(In
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780
--- Comment #2 from Jonathan Wakely ---
It is undefined to decrement a pointer to point before an object.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED