https://bugs.llvm.org/show_bug.cgi?id=50572

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Richard Smith <[email protected]> ---
If you ask for an array of exactly four characters and initialize it with a
four-character string, you didn't leave any room for a null terminator, so you
don't get one.

C11 6.7.9/14: "Successive bytes of the string literal (including the
terminating null character if there is room or if the array is of unknown size)
initialize the elements of the array."

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to