https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95075
Iain Buclaw changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95075
--- Comment #3 from CVS Commits ---
The master branch has been updated by Iain Buclaw :
https://gcc.gnu.org/g:1b7b352a8379dbdd74c962d11951982e21e20f13
commit r11-1662-g1b7b352a8379dbdd74c962d11951982e21e20f13
Author: Iain Buclaw
Date: Wed Ju
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95075
--- Comment #2 from Iain Buclaw ---
"""
I think I wrote it that way to emphasize what the result should be, and relied
on the optimizer removing the self-assignment. So, the code is correct.
"""
So I'll remove the self-assignment with a comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95075
--- Comment #1 from Iain Buclaw ---
Also present in upstream implementation, I'll ask the author of the change
about it.