Closed
Description
[dcl.array] p6 states:
An object of type “array of N
U
” contains a contiguously allocated non-empty set of N subobjects of typeU
, known as the elements of the array, and numbered0
toN -1
.
The use of contains here does not seem to be exclusive, and could potentially be interpreted to say that padding is permitted before the first element, allowing for the address of an array and its first element to differ (further, we don't normatively state that an array and it first element have the same address)
Metadata
Metadata
Assignees
Labels
No labels
Activity
languagelawyer commentedon Jul 1, 2020
#3203