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

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Walter Bright <[email protected]> ---
char s1[2] = "toolong"; // gcc and clang give a warning on this, dmc gives
error

char s2[50] = "tooshort"; // well, that should work

C11 6.7.9-2 says: No initializer shall attempt to provide a value for an object
not contained within the entity
being initialized.

I interpret that as the s1 example should be an error.

--

Reply via email to