Comment 2 for bug 1955320

Revision history for this message
Andrew Coad (skajam66) wrote :

Hi Liviu,

Thank you for your comments. I have two related questions:
1. If the compiler can remove the pointer assignments, surely it must also remove code that references those assignments?
2. You say that such pointer operations are undefined. Can you offer any guidance on how that code snippet should be written to avoid any undefined behaviour?

Kind regards,
skajam66