Skip to content

[dcl.array] Potentially ambiguous specification of array contents #3791

Closed
@sdkrystian

Description

@sdkrystian
Contributor

[dcl.array] p6 states:

An object of type “array of N U” contains a contiguously allocated non-empty set of N subobjects of type U, known as the elements of the array, and numbered 0 to N -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)

Activity

self-assigned this
on Jun 26, 2020
languagelawyer

languagelawyer commented on Jul 1, 2020

@languagelawyer
Contributor

further, we don't normatively state that an array and it first element have the same address

#3203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @sdkrystian@jensmaurer@languagelawyer

    Issue actions

      [dcl.array] Potentially ambiguous specification of array contents · Issue #3791 · cplusplus/draft