[tz] proposed changes for Win32 and a improved mktime() algorithm
eggert at cs.ucla.edu
Thu May 18 18:15:12 UTC 2017
On 05/18/2017 10:08 AM, Zefram wrote:
> it seems like the kind of thing that
> would have undefined behaviour, but I looked at the C standard, and on
> my reading it actually doesn't.
I think you need to look at other parts of the standard. C11 220.127.116.11
paragraph 2 says, "If the lvalue designates an object of automatic
storage duration that could have been declared with the register storage
class (never had its address taken), and that object is uninitialized
(not declared with an initializer and no assignment to it has been
performed prior to use), the behavior is undefined." Also see C11
18.104.22.168 paragraph 5 for non-character accesses.
More information about the tz