Closed
Description
Consider the following declaration of an nt_checked
array:
char p nt_checked[] = {}
According to the Checked C spec section 2.4:
nt_checked
declares an array whose last element is a null terminator. The size of the array includes the null terminator element.- An
nt_checked
array with sized
converts to annt_array_ptr
with a count ofd - 1
elements.
So it should be illegal to declare an nt_checked
array with an empty initializer list.