Re:Catch-23: The New C Standard Sets the World on Fire
by Dylan16807 on Sunday April 02, 2023 @04:18PM
(#35414722)
I understand that interpretation, but that's what the end of my comment is about. If we treat unreachable as affecting the block it's in, but pretend it's not there for control flow, then the two versions of the code do different things. That's confusing and hard to preserve.
Under this view, if the `unreachable` won't cause the entire removal of the `if`, the compiler will produce the equivalent of:
Again, I don't say this is the correct interpretation, but it is one possibility, that would have to be ruled out by other parts of the standard.