Suppose we have an int variable referenced as const int*which in turn is aliased as int *. Is it clear from the Standard if modifying the variable through the int * pointer is undefined behavior or not?
As an illustration, consider the following code:
void increment(int* p) {
(*p)++;
}
void call_increment(const int* p) {
increment(p);
}
int main(void) {
int x = 7;
int* p = &x;
call_increment(p);
}