Thread overview
[Issue 17740] ghost "internal" symbols show up sometimes
August 10

--- Comment #1 from Steven Schveighoffer <> ---
(In reply to Steven Schveighoffer from comment #0)
> Another example:

Wrong link, here it is:

August 10

--- Comment #2 from Jonathan M Davis <> ---
Well, it looks like it relates to directly assigning a non-null value to the _timezone member at compile time. The new TimeZone class declaration is not required. All you have to do to trigger it is to change line # 8996 at the bottom of std.datetime.systime from

    Rebindable!(immutable TimeZone) _timezone;

    Rebindable!(immutable TimeZone) _timezone = UTC();

Unfortunately, declaring a struct like

    struct S
        Rebindable!(immutable TimeZone) _timezone = UTC();

does not exhibit the problem. So, I don't know how to create a small test case that doesn't require the std.datetime code. But assigning UTC() like this before used to work. A backend bug on Windows prevened me from getting a similar PR merged where it added a new TimeZone class, and assigning UTC() in that case had exactly the same problem as I recall (certainly, assigning the new time zone class did, because that's what blocked the PR). But it worked perfectly fine on other OSes, and I'm fairly certain that I tried those changes again at some point, and the backend bug was gone - I just wanted to rework the changes, so they weren't committed. Regardless, it worked perfectly fine on non-Windows OSes previously. So, something about this broke in the last several releases. I'd have to do some research to figure out when it broke though.

August 12

Jonathan M Davis <> changed:

           What    |Removed                     |Added
                 CC|                            |
                   |                            |m

--- Comment #3 from Jonathan M Davis <> ---
Okay. If it's a regression, it's an old one. I suspect that I just didn't hit it before, because I didn't run make checkwhitespace, and running the full unittest build doesn't hit it (at least, not on my machine). I tried back as far as 2.069.0, and directly assigning UTC() to _timezone still triggered the problem with running make whitespace.