It is - see http://eel.is/c++draft/expr.static.cast#13 and http://eel.is/c++draft/expr.add
The cast will leave the pointer value unchanged. That means, when the addition is done, it is still pointing to the int object, which will result in a pointer past the end. Modifying it will result in UB.
-------- Original message --------
From: Lyberta via Std-Discussion <std-discussion@lists.isocpp.org>
Date: 7/20/19 16:34 (GMT-05:00)
To: sdkrystian via Std-Discussion <std-discussion@lists.isocpp.org>
Cc: Lyberta <lyberta@lyberta.net>
Subject: Re: [std-discussion] Fixing common reinterpret_cast design patterns
sdkrystian via Std-Discussion: