Remix.run Logo
RossBencina 2 days ago

We pray that it is implementation defined. According to some [1] even arithmetic on intptr_t is UB, let alone bit operations.

[1] https://stackoverflow.com/a/64863331/2013747

2 days ago | parent | next [-]
[deleted]
gpderetta a day ago | parent | prev [-]

Eh, that's about strictly conforming programs. In practice the vast majority of programs are going to use platform facilities and extensions (POSIX for example) while still being conforming.