@hjvt @AstraKernel Interesting. I had it somehow stuck in my mind that this is defined, and getting the address always yields the same value (at least for the same type).
However, doing a quick web search yields no mention of this, so I probably misremembered.
@hjvt @soulsource @AstraKernel But what of two ZSTs composed together in another ZST?
The array here is itself zero-sized; is there no guarantee that a pointer to an array element must be pointing to an address inside the array? Which would necessitate that the array and the two elements all have the same address?
I am unreasonably fascinated by this problem ^_^
check this out:
(in release mode, all will have same address)