https://issues.dlang.org/show_bug.cgi?id=22918

--- Comment #1 from [email protected] ---
arrays initialized with the {0} syntax are also affected by this - C11 says the
remaining elements should be initialized the same as "objects that have static
storage duration"

int printf(char *, ...);
int main()
{ 
        char ca[2] = {0};
        printf("%d %d\n", (int)ca[0], (int)ca[1]);

        return 0;
}

should print 0, 0, prints 0, 255

--

Reply via email to