c-family: copy attribute diagnostic fixes [PR113262]