https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90882

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Kevin Dewald from comment #1)
> From what I've read, modifying a boolean variable with an int pointer is
> undefined.

Yes.

> Nevertheless, this feels unexpected from a programmers point of
> view,

Yes, that's the nature of undefined behaviour. So don't do it.

Reply via email to